<!DOCTYPE html>
<html lang="en">
<head>
    <title>报表首页</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=4a6c1b54">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=16f1e6f3">
    <script src="https://file.ggxqce.com/web/vue.min.js"></script>
    <style>
        .moduleName {
            float: left;
            height: 27px;
            line-height: 27px;
            font-size: 22px;
            width: 100px;
            text-align: center;
        }

        .tryStyle {
            width: 30px;
            height: 14px;
            line-height: 14px;
            font-size: 12px;
            /* top: 0; */
            right: 0;
            position: absolute;
            border-radius: 5px;
            margin-top: 1px;
            background: red;
            color: #fff;
            margin-right: -2px;
            transform: scale(0.8);
        }

        .nav-tabs-custom {
            padding: 10px;
            margin-bottom: 0;
            box-shadow: none;
            position: relative;
            overflow: hidden;
        }

        .infoReport {
            display: flex;
            justify-content: flex-start;
            text-align: left;
            margin-left: 10px;
        }

        .infoReport div {
            margin: 0 10px;
        }

        .lineOne {
            text-align: left;
        }

        .lineOne span {
            max-height: 20px;
            line-height: 20px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            text-align: left;
        }

        .lineOneNoMore {
            text-align: left;
        }

        .lineOneNoMore span {
            max-height: 20px;
            line-height: 20px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            text-align: left;
        }

        .mScrollBox {
            float: left;
            position: relative;
        }

        .imgStyle {
            width: 300px;
            height: 400px;
        }

        .div-td-content-more {
            position: absolute;
            height: auto;
            z-index: 999;
            line-height: 20px;
            background-color: #d3e8fd;
            padding: 8px 6px;
            border: 1px solid #e8e8ea;
            display: none;
        }

        .div-td-content-more i {
            width: 15px;
            height: 12px;
            background: url("/dist/img/more-icon.png");
            position: absolute;
            left: 50px;
            top: -12px;
        }

        .templateStyle {
            border: 1px solid #ddd;
            margin-bottom: 10px;
            padding-bottom: 10px;
        }

        .table > thead > tr > th {
            padding: 0;
        }

        .table > tbody > tr > td {
            /*position: relative;*/
        }

    </style>
</head>
<body>
<section class="content iframeH" id="app" v-cloak style="overflow-y: scroll">
    <iframe id="ifExprot" style="width:0px;height:0px;display: none;" frameborder="0"></iframe>

    <div class="div-td-content-more"><i></i></div>
    <!--人事-部门经理模块-->
    <div class="templateStyle" v-if="isHasModule('personnelDepart')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">人员情况</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="personnelDepart">
            <div class="mScrollBox" style="width:100%;">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%;">序号</th>-->
                        <th style="width: 8%;" class="tableTitle">部门/大区</th>
                        <th style="width:8%" class="tableTitle">岗位</th>
                        <th style="width:8%" class="tableTitle">姓名</th>
                        <th style="width:8%" class="tableTitle">在职状态</th>
                        <th style="width:10%" class="tableTitle">入职天数</th>
                        <th style="width: 58%" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="personnel.list.length>0">
                        <tr v-for="(item,i) in personnel.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}"
                                style="border-right: 1px solid #cbcbcd;">
                                {{item.departName}}
                            </td>
                            <!--<td :rowspan="item.roleNamespan" :class="{hidden: item.roleNamedis}">-->
                            <td>
                                {{item.roleName}}
                            </td>
                            <td v-if="item.userName" style="color:#169BD5;cursor: pointer"
                                @click="lookPersonnelDepartList(item)" class="openUserBox" :attrid="item.userId">
                                {{item.userName}}
                            </td>
                            <td v-else style="color: rgb(204, 204, 204);">空缺</td>

                            <td v-if="item.jobState ===0||item.jobState=='-'">-</td>
                            <td v-else-if="item.jobState == -1" style="color:orange;">试用</td>
                            <td v-else-if="item.jobState == -2" style="color:red;">试岗</td>
                            <td v-else-if="item.jobState == ''">-</td>
                            <td v-else>离职</td>
                            <td> {{item.entryTime}}</td>
                            <td class="lineOne">
                                <span>{{item.regionName}}</span>
                            </td>
                        </tr>
                    </template>

                    <template v-else>
                        <tr>
                            <td colspan="6">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--人事-公司级别模块-->
    <div class="templateStyle" v-if="isHasModule('personnelCompany')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">人员情况</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="personnelCompany">
            <div class="mScrollBox" style="width:100%;">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%">序号</th>-->
                        <th style="width: 10%" class="tableTitle">部门/大区</th>
                        <th style="width: 10%" class="tableTitle">岗位</th>
                        <th style="width:8%" class="tableTitle">姓名</th>
                        <th style="width:8%" class="tableTitle">在职状态</th>
                        <th style="width:10%" class="tableTitle">入职时间</th>
                        <th style="width:10%" class="tableTitle">入职天数</th>
                        <th style="width: 49%" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="personnel.list.length>0">
                        <tr v-for="(item,i) in personnel.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}"
                                style="border-right: 1px solid #cbcbcd;">
                                {{item.departName}}
                            </td>
                            <!--<td :rowspan="item.roleNamespan" :class="{hidden: item.roleNamedis}">-->
                            <td>
                                {{item.roleName}}
                            </td>

                            <td v-if="item.userName" style="color:#169BD5;cursor: pointer"
                                @click="lookPersonnelDepartList(item)">{{item.userName}}
                            </td>
                            <td v-else style="color: rgb(204, 204, 204);">空缺</td>
                            <td v-if="item.jobState ===0||item.jobState=='-'"></td>
                            <td v-else-if="item.jobState == -1" style="color:orange;">试用</td>
                            <td v-else-if="item.jobState == -2" style="color:red;">试岗</td>
                            <td v-else-if="item.jobState == ''"></td>
                            <td v-else>离职</td>
                            <td>{{item.entryDate}}</td>
                            <td> {{item.entryTime}}</td>
                            <td class="lineOne">
                                <span>{{item.regionName}}</span>
                            </td>
                        </tr>
                    </template>

                    <template v-else>
                        <tr>
                            <td colspan="7">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--人事-集团级别模块-->
    <div class="templateStyle" v-if="isHasModule('personnelGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">人员情况</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="personnelGroup">
            <div class="mScrollBox" style="width:100%;">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <th rowspan="2" style="width: 15%;border-right: 1px solid #cbcbcd;" class="tableTitle">公司名称</th>
                        <th colspan="3" style="width: 20%;" class="tableTitle">区域经理</th>
                        <th colspan="3" style="width: 20%;" class="tableTitle">大区经理</th>
                        <th colspan="3" style="width: 20%;" class="tableTitle">大客户经理</th>
                        <th colspan="3" style="width: 20%;" class="tableTitle">大客户总监</th>
                    </tr>
                    <tr>
                        <th class="tableTitle">标配</th>
                        <th class="tableTitle">现有</th>
                        <th class="tableTitle">空缺</th>
                        <th class="tableTitle">标配</th>
                        <th class="tableTitle">现有</th>
                        <th class="tableTitle">空缺</th>
                        <th class="tableTitle">标配</th>
                        <th class="tableTitle">现有</th>
                        <th class="tableTitle">空缺</th>
                        <th class="tableTitle">标配</th>
                        <th class="tableTitle">现有</th>
                        <th class="tableTitle">空缺</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in personnel.list">
                        <td style="color:#169BD5;cursor: pointer" @click="openPersonalGroup(item)">
                            {{item.companyName}}
                        </td>
                        <td>
                            {{item.regionManagerTargetNum}}
                        </td>
                        <td>{{item.regionManagerNowNum}}</td>
                        <td>{{item.regionManagerVacancyNum}}</td>
                        <td>{{item.bigRegionManagerTargetNum}}</td>
                        <td>{{item.bigRegionManagerNowNum}}</td>
                        <td>{{item.bigRegionManagerVacancyNum}}</td>
                        <td>
                            {{item.bigCustomerManageTargetNum}}
                        </td>
                        <td>
                            {{item.bigCustomerManageNowNum}}
                        </td>
                        <td>
                            {{item.bigCustomerManageVacancyNum}}
                        </td>
                        <td>
                            {{item.bigCustomerDirectorTargetNum}}
                        </td>
                        <td>
                            {{item.bigCustomerDirectorNowNum}}
                        </td>
                        <td>
                            {{item.bigCustomerDirectorVacancyNum}}
                        </td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{personnel.all.regionManagerTargetNum}}</td>
                        <td>{{personnel.all.regionManagerNowNum}}</td>
                        <td>{{personnel.all.regionManagerVacancyNum}}</td>
                        <td>{{personnel.all.bigRegionManagerTargetNum}}</td>
                        <td>{{personnel.all.bigRegionManagerNowNum}}</td>
                        <td>{{personnel.all.bigRegionManagerVacancyNum}}</td>
                        <td>{{personnel.all.bigCustomerManageTargetNum}}</td>
                        <td>{{personnel.all.bigCustomerManageNowNum}}</td>
                        <td>{{personnel.all.bigCustomerManageVacancyNum}}</td>
                        <td>{{personnel.all.bigCustomerDirectorTargetNum}}</td>
                        <td>{{personnel.all.bigCustomerDirectorNowNum}}</td>
                        <td>{{personnel.all.bigCustomerDirectorVacancyNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;width:210px;">-->
            <!--<div style="padding-left: 2px;">-->
            <!--岗&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位：标配/现有/空缺-->
            <!--</div>-->
            <!--<div>区域经理&nbsp;&nbsp;&nbsp;(总)：{{personnel.all.regionManagerTargetNum}}/{{personnel.all.regionManagerNowNum}}/{{personnel.all.regionManagerVacancyNum}}</div>-->
            <!--<div>大区经理&nbsp;&nbsp;&nbsp;(总)：{{personnel.all.bigRegionManagerTargetNum}}/{{personnel.all.bigRegionManagerNowNum}}/{{personnel.all.bigRegionManagerVacancyNum}}</div>-->
            <!--<div>-->
            <!--大客户经理(总)：{{personnel.all.bigCustomerManageTargetNum}}/{{personnel.all.bigCustomerManageNowNum}}/{{personnel.all.bigCustomerManageVacancyNum}}-->
            <!--</div>-->
            <!--<div>-->
            <!--大客户总监(总)：{{personnel.all.bigCustomerDirectorTargetNum}}/{{personnel.all.bigCustomerDirectorNowNum}}/{{personnel.all.bigCustomerDirectorVacancyNum}}-->
            <!--</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--考勤-区域经理模块-->
    <div class="templateStyle" v-if="isHasModule('signInPersonal')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">考&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;勤</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('sign','get_signInPersonal',today)"><a href="#sales-chart"
                                                                                              data-toggle="tab">今日</a>
                </li>
                <!--<li @click="refreshData('sign','get_signInPersonal',yesterday)"><a href="#sales-chart"-->
                <!--data-toggle="tab">昨日</a>-->
                <!--</li>-->
                <!--<li @click="refreshData('sign','get_signInPersonal',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a></li>-->
                <li @click="refreshData('sign','get_signInPersonal',thisMonth)"><a href="#sales-chart"
                                                                                   data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab" @click="refreshData('sign','get_signInPersonal',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="signInPersonal">
            <div style="width: 100%;" class="mScrollBox">
                <!--<image class='imgStyle' src="+url+">"-->
                <table class="table text-center table-width " v-if="sign.list.length>0">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%;">序号</th>-->
                        <th style="width: 8%" class="tableTitle">日期</th>
                        <th style="width: 4%" class="tableTitle">出勤</th>
                        <th style="width: 5%" class="tableTitle">签到时间</th>
                        <th style="width: 44%" class="tableTitle">签到地点/请假原因</th>
                        <!-- <th style="width: 5%">签退时间</th>
                         <th style="width: 44%">签退地点</th>-->
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in sign.list">
                        <!--<td>{{i+1}}</td>-->
                        <td>{{(item.signDate).substr(5,10)}}</td>
                        <td>
                            <span v-if="item.signState=='0'">
                                <span v-if="sign.info.entryDate==item.signDate">入职</span>
                                <i class="fa fa-check" style="color:#349f2f;" v-else></i>
                            </span>
                            <span v-else-if="item.signState==1">
                            请假
                        </span>
                            <span v-else-if="item.signState==2">
                                <i class="fa fa-close" style="color:red;"></i>
                            </span>
                        </td>
                        <td v-if="item.signState==1">
                            -
                        </td>
                        <td v-else>{{item.signCreateTime}}</td>
                        <td style="text-align: left;" class="lineOneNoMore">
                        <span v-if="item.signState=='0'" @click="openImg(item.signUrl)"
                              style="color:#169BD5;cursor: pointer;">{{item.startAddress}}</span>
                            <span v-else-if="item.signState==1">{{item.startAddress}}</span>
                        </td>
                        <!--<td v-if="item.signState==1">
                            -
                        </td>
                        <td v-else>{{item.signOutTime}}</td>
                        <td style="text-align: left;color:#169BD5;cursor: pointer;" class="lineOneNoMore">
                                <span v-if="item.endAddress"
                                      @click="openImg(item.signOutUrl)">{{item.endAddress}}</span>
                        </td>-->
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>

        </div>
    </div>
    <!--考勤-大区经理模块-->
    <div class="templateStyle" v-if="isHasModule('signInDepart')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">考&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;勤</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('sign','get_signInDepart',today)"><a href="#sales-chart"
                                                                                            data-toggle="tab">今日</a>
                </li>
                <!--<li @click="refreshData('sign','get_signInDepart',yesterday)"><a href="#sales-chart" data-toggle="tab">昨日</a>-->
                <!--</li>-->
                <!--<li @click="refreshData('sign','get_signInDepart',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a></li>-->
                <li @click="refreshData('sign','get_signInDepart',thisMonth)"><a href="#sales-chart" data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab" @click="refreshData('sign','get_signInDepart',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
                <button type="button" class="btn oaBtn btn-sm" style="float: right;"
                        v-if="sign.time!=today"
                        @click="exportGetForDepart()">导出考勤明细
                </button>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="signInDepart">
            <div style="width: 100%;" class="mScrollBox">

                <table class="table text-center table-width ">
                    <thead>
                    <tr>
                        <!--<th style="width:5%">序号</th>-->
                        <th style="width:8%" class="tableTitle">岗位</th>
                        <th style="width:8%" class="tableTitle">姓名</th>
                        <th style="width:4%" class="tableTitle" v-if="sign.time==today">出勤</th>
                        <th style="width:5%" class="tableTitle" v-if="sign.time==today">签到时间</th>
                        <th style="width:28%" class="tableTitle" v-if="sign.time==today">签到地点/请假原因</th>
                        <!--<th style="width:5%" v-if="sign.time==today">签退时间</th>
                        <th style="width:28%" v-if="sign.time==today">签退地点</th>-->
                        <th style="width:14%" class="tableTitle" v-if="sign.time!=today">应出勤</th>
                        <th style="width:14%" class="tableTitle" v-if="sign.time!=today">出勤</th>
                        <th style="width:14%" class="tableTitle" v-if="sign.time!=today">请假</th>
                        <th style="width:14%" class="tableTitle" v-if="sign.time!=today">缺勤</th>
                        <th :style="sign.time==today?'width: 10%':'width: 28%'" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in sign.list">
                        <!--<td>{{i+1}}</td>-->
                        <td :rowspan="item.roleNamespan" :class="{hidden: item.roleNamedis}"
                            style="border-right: 1px solid #cbcbcd;">{{item.roleName}}
                        </td>
                        <td @click="openSignInPersonal(item)" style="color:#169BD5;cursor: pointer">
                            {{item.userName}}
                        </td>
                        <td v-if="sign.time==today">
                            <span v-if="item.signState=='0'">
                                <span v-if="sign.info.entryDate==item.signDate">入职</span>
                                <i class="fa fa-check" style="color:#349f2f;" v-else></i>
                            </span>
                            <span v-else-if="item.signState==1">
                            请假
                        </span>
                            <span v-else>
                                <i class="fa fa-close" style="color:red;"></i>
                            </span>
                        </td>

                        <td v-if="sign.time==today">
                            <span>{{item.signState=="1"?"-":item.signCreateTime}}</span>

                        </td>

                        <td style="text-align: left;" class="lineOne" v-if="sign.time==today">
                        <span v-if="item.signState=='0'" @click="openImg(item.signUrl)"
                              style="color:#169BD5;cursor: pointer;">{{item.startAddress}}</span>
                            <span v-else-if="item.signState==1">{{item.startAddress}}</span>
                        </td>
                        <!--<td v-if="sign.time==today">
                            <span>{{item.signState=="1"?"-":item.signOutTime}}</span>
                        </td>
                        <td style="text-align: left;color:#169BD5;cursor: pointer;" class="lineOne"
                            v-if="sign.time==today">
                            <span v-if="item.endAddress" @click="openImg(item.signOutUrl)">{{item.endAddress}}</span>
                        </td>-->
                        <td v-if="sign.time!=today">{{item.shouldCount=="0"?"-":item.shouldCount}}</td>
                        <td v-if="sign.time!=today&&item.signInCount!=0" @click="openSignInList('user',item.userId,1)"
                            style="color:#169BD5;cursor: pointer;">{{item.signInCount=="0"?"-":item.signInCount}}
                        </td>
                        <td v-else-if="sign.time!=today">-</td>
                        <td v-if="sign.time!=today&&item.leaveCount!=0" @click="openSignInList('user',item.userId,2)"
                            style="color:#169BD5;cursor: pointer;">{{item.leaveCount=="0"?"-":item.leaveCount}}
                        </td>
                        <td v-else-if="sign.time!=today">-</td>
                        <td v-if="sign.time!=today&&item.absenceCount!=0" @click="openSignInList('user',item.userId,3)"
                            style="color: red;">{{item.absenceCount=="0"?"-":item.absenceCount}}
                        </td>
                        <td v-else-if="sign.time!=today">-</td>

                        <td class="lineOne">
                            <span>{{item.regionName}}</span>
                        </td>
                    </tr>
                    <tr v-if="sign.time!=today">
                        <td>合计</td>
                        <td>-</td>
                        <td>{{sign.info.shouldCount}}</td>
                        <td>{{sign.info.signInCount}}</td>
                        <td>{{sign.info.leaveCount}}</td>
                        <td>{{sign.info.absenceCount}}</td>
                        <td>-</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;">-->
            <!--<div>应出勤(人)：{{sign.info.shouldCount}}</div>-->
            <!--<div>已出勤(人)：{{sign.info.signInCount}}</div>-->
            <!--<div>请<span style="margin-left: 15px;">假</span>(人)：{{sign.info.leaveCount}}</div>-->
            <!--<div>缺<span style="margin-left: 15px;">勤</span>(人)：{{sign.info.absenceCount}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--考勤-公司级别模块-->
    <div class="templateStyle" v-if="isHasModule('signInCompany')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">考&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;勤</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('sign','get_signInCompany',today)"><a href="#sales-chart"
                                                                                             data-toggle="tab">今日</a>
                </li>
                <!--<li @click="refreshData('sign','get_signInCompany',yesterday)"><a href="#sales-chart" data-toggle="tab">昨日</a>-->
                <!--</li>-->
                <!--<li @click="refreshData('sign','get_signInCompany',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a></li>-->
                <li @click="refreshData('sign','get_signInCompany',thisMonth)"><a href="#sales-chart" data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab" @click="refreshData('sign','get_signInCompany',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
                <!--<div class="infoReport" style="margin-top: 0px;">
                    <div style="height: 25px;margin-bottom: 10px;margin-top: 0px;">
                        <input type="button" class="btn oaBtn btn-sm pull-left"
                               style="margin-left: 0px; position:absolute; right:10px; !important;" value="导出考勤明细"
                               v-if="sign.time!=today"
                               @click="exportGet"/>
                    </div>
                </div>-->
                <button type="button" class="btn oaBtn btn-sm" style="float: right;"
                        v-if="sign.time!=today"
                        @click="exportGetForCompany()">导出考勤明细
                </button>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="signInCompany">
            <div style="width: 100%;" class="mScrollBox">

                <table class="table text-center table-width ">
                    <thead>
                    <tr>
                        <!--<td style="width: 5%">序号</td>-->
                        <td :style="sign.time==today?'width: 19%':'width: 10%'" class="tableTitle">部门/大区</td>
                        <td :style="sign.time==today?'width: 19%':'width: 10%'" v-if="sign.time!=today"
                            class="tableTitle">岗位
                        </td>
                        <td :style="sign.time==today?'width: 19%':'width:8%'" v-if="sign.time!=today"
                            class="tableTitle">姓名
                        </td>
                        <td :style="sign.time==today?'width: 19%':'width:8%'" class="tableTitle">应出勤</td>
                        <td :style="sign.time==today?'width: 19%':'width:8%'" class="tableTitle">出勤</td>
                        <td :style="sign.time==today?'width: 19%':'width:8%'" class="tableTitle">请假</td>
                        <td :style="sign.time==today?'width: 19%':'width:8%'" class="tableTitle">缺勤</td>
                        <td style="width: 35%;" v-if="sign.time!=today" class="tableTitle">区域</td>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in sign.list">
                        <!--<td>{{i+1}}</td>-->
                        <template v-if="sign.time==today">
                            <td style="color:#169BD5;cursor: pointer;" @click="openSignInDepart(item)">
                                {{item.departName}}
                            </td>
                        </template>
                        <template v-else>
                            <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}"
                                style="border-right: 1px solid #cbcbcd;">
                                {{item.departName}}
                            </td>
                        </template>
                        <td :rowspan="item.roleNamespan" :class="{hidden: item.roleNamedis}" v-if="sign.time!=today"
                            style="border-right: 1px solid #cbcbcd;">
                            {{item.roleName}}
                        </td>
                        <td style="color:#169BD5;cursor: pointer" @click="openSignInPersonal(item)"
                            v-if='sign.time!=today'>
                            {{item.userName}}
                        </td>
                        <td>{{item.shouldCount=='0'?"-":item.shouldCount}}</td>
                        <td v-if="item.signInCount!=0">
                            <span v-if="sign.time==today" @click="openSignInList('depart',item.departId,1)"
                                  style="color:#2a8cec;cursor: pointer;">{{item.signInCount}}</span>
                            <span v-else>{{item.signInCount}}</span>

                        </td>
                        <td v-else>-</td>
                        <td v-if="item.leaveCount!=0">
                            <span v-if="sign.time==today" @click="openSignInList('depart',item.departId,2)"
                                  style="color:#2a8cec;cursor: pointer;">{{item.leaveCount}}</span>
                            <span v-else>{{item.leaveCount}}</span>
                        </td>
                        <td v-else>-</td>
                        <td v-if="item.absenceCount!=0">
                            <span v-if="sign.time==today" @click="openSignInList('depart',item.departId,3)"
                                  style="color:red;cursor: pointer;">{{item.absenceCount}}</span>
                            <span v-else>{{item.absenceCount}}</span>
                        </td>
                        <td v-else style="color:red;">-</td>
                        <td style="text-align: left;" class="lineOne" v-if="sign.time!=today">
                            <span>{{item.regionName}}</span>
                        </td>
                    </tr>
                    <tr v-if="sign.time!=today">
                        <td>合计</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{sign.info.shouldCount}}</td>
                        <td>{{sign.info.signInCount}}</td>
                        <td>{{sign.info.leaveCount}}</td>
                        <td>{{sign.info.absenceCount}}</td>
                        <td></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;">-->
            <!--<div>应出勤(总)：{{sign.info.shouldCount}}</div>-->
            <!--<div>已出勤(总)：{{sign.info.signInCount}}</div>-->
            <!--<div>请<span style="margin-left: 15px;">假</span>(总)：{{sign.info.leaveCount}}</div>-->
            <!--<div>缺<span style="margin-left: 15px;">假</span>(总)：{{sign.info.absenceCount}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--考勤-集团级别模块-->
    <div class="templateStyle" v-if="isHasModule('signInGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">考&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;勤</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('sign','get_signInGroup',today)"><a href="#sales-chart"
                                                                                           data-toggle="tab">今日</a>
                </li>
                <!--<li @click="refreshData('sign','get_signInGroup',yesterday)"><a href="#sales-chart"-->
                <!--data-toggle="tab">昨日</a>-->
                <!--</li>-->
                <!--<li @click="refreshData('sign','get_signInGroup',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a></li>-->
                <li @click="refreshData('sign','get_signInGroup',thisMonth)"><a href="#sales-chart"
                                                                                data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('sign','get_signInGroup',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="signInGroup">
            <div style="width: 100%;" class="mScrollBox">

                <table class="table text-center table-width ">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%">序号</th>-->
                        <th style="width: 19%" class="tableTitle">公司名称</th>
                        <th style="width: 19%" class="tableTitle">应出勤人数</th>
                        <th style="width: 19%" class="tableTitle" v-if="sign.time==today">出勤人数</th>
                        <th style="width: 19%" class="tableTitle" v-else>满勤人数</th>
                        <th style="width:19%" class="tableTitle">请假人数</th>
                        <th style="width:19%" class="tableTitle">缺勤人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in sign.list">
                        <!--<td>{{i+1}}</td>-->
                        <td style="color:#169BD5;cursor: pointer" @click="openSignInCompany(item)">
                            {{item.companyName}}
                        </td>
                        <td>
                            {{item.shouldSignInCount==""?"-":item.shouldSignInCount}}
                        </td>
                        <td v-if="item.signInFullCount!=0"
                            @click="openSignInList('company',item.companyId,1,item.companyName)"
                            style="color:#169BD5;cursor: pointer;">{{item.signInFullCount}}
                        </td>
                        <td v-else>
                            {{item.signInFullCount=="0"?"-":item.signInFullCount}}
                        </td>
                        <td v-if="item.leaveFullCount!=0"
                            @click="openSignInList('company',item.companyId,2,item.companyName)"
                            style="color:#169BD5;cursor: pointer;">{{item.leaveFullCount}}
                        </td>
                        <td v-else>
                            {{item.leaveFullCount=="0"?"-":item.leaveFullCount}}
                        </td>
                        <td v-if="item.absenceFullCount!=0"
                            @click="openSignInList('company',item.companyId,3,item.companyName)"
                            style="color: red;cursor: pointer;">{{item.absenceFullCount}}
                        </td>
                        <td v-else style="color: red;">
                            {{item.absenceFullCount==""?"-":item.absenceFullCount}}
                        </td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{sign.info.todayCount}}</td>
                        <td>{{sign.info.signInCount}}</td>
                        <td>{{sign.info.leaveCount}}</td>
                        <td>{{sign.info.absenceCount}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;">-->
            <!--&lt;!&ndash;<div>本月应出勤：{{sign.info.shouldCount}}</div>&ndash;&gt;-->
            <!--<div>应出勤(总)：{{sign.info.todayCount}}</div>-->
            <!--<div>已出勤(总)：{{sign.info.signInCount}}</div>-->
            <!--<div>请&nbsp;&nbsp;&nbsp;&nbsp;假(总)：{{sign.info.leaveCount}}</div>-->
            <!--<div>缺&nbsp;&nbsp;&nbsp;&nbsp;勤(总)：{{sign.info.absenceCount}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--拜访客户-区域经理模块-->
    <div class="templateStyle" v-if="isHasModule('visitPersonal')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">拜访客户</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('visitCustomer','get_visitPersonal',today)"><a
                        href="#sales-chart" data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('visitCustomer','get_visitPersonal',yesterday)"><a href="#sales-chart"
                                                                                           data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('visitCustomer','get_visitPersonal',thisWeek)"><a href="#sales-chart"
                                                                                          data-toggle="tab">本周</a></li>
                <li @click="refreshData('visitCustomer','get_visitPersonal',thisMonth)"><a href="#sales-chart"
                                                                                           data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('visitCustomer','get_visitPersonal',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="visitPersonal">
            <div style="width: 49%;" class="mScrollBox">
                <table class="table text-center table-width" style="table-layout: auto;">
                    <thead>
                    <tr>
                        <!--<th style="width: 48px;">序号</th>-->
                        <th style="width: 85px;" class="tableTitle">面访排名
                        </th>
                        <th style="width:85px" v-if="visitCustomer.time.length!=10" class="tableTitle">日均完成</th>
                        <th style="width: 50px;" class="tableTitle">完成
                        </th>
                        <th style="width: 50px;" class="tableTitle">目标</th>
                        <th style="width: 70px;" class="tableTitle">区域经理</th>
                        <th style="width:85px" v-if="visitCustomer.time.length!=10" class="tableTitle">出勤天数</th>
                        <th style="width: 280px;" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in visitCustomer.faceList">
                        <!--<td>{{i+1}}</td>-->
                        <td>{{item.rownum}}</td>
                        <td v-if="visitCustomer.time.length!=10">{{item.averageComplete}}</td>
                        <td v-if="userId==item.userId&&item.complete!='-'" style="color:#169BD5;cursor: pointer"
                            @click="lookInterview(item,'1')">
                            {{item.complete}}
                        </td>
                        <td v-else-if="item.complete!='-'">{{item.complete}}</td>
                        <td v-else>-</td>
                        <td>
                            {{item.target}}
                        </td>
                        <td>{{item.userName}}
                        </td>
                        <td v-if="visitCustomer.time.length!=10">{{item.signManagerNum}}</td>
                        <td class="lineOne"><span>{{item.regionName}}</span></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="width: 48%;float:right;" class="mScrollBox">
                <table class="table text-center table-width" style="table-layout: auto;">
                    <thead>
                    <tr>
                        <!--<th style="width: 48px;">序号</th>-->
                        <th style="width: 85px;" class="tableTitle">电访排名
                        </th>
                        <th style="width:85px" v-if="visitCustomer.time.length!=10" class="tableTitle">日均完成</th>
                        <th style="width: 50px;" class="tableTitle">完成
                        </th>
                        <th style="width: 50px;" class="tableTitle">目标</th>
                        <th style="width: 70px;" class="tableTitle">区域经理</th>
                        <th style="width:85px" v-if="visitCustomer.time.length!=10" class="tableTitle">出勤天数</th>
                        <th style="width: 280px;" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in visitCustomer.telList">
                        <!--<td>{{i+1}}</td>-->
                        <td>{{item.rownum}}</td>
                        <td v-if="visitCustomer.time.length!=10">{{item.averageComplete}}</td>
                        <td v-if="userId==item.userId&&item.complete!='-'" style="color:#169BD5;cursor: pointer"
                            @click="lookInterview(item,'0')">
                            {{item.complete}}
                        </td>
                        <td v-else-if="item.complete!='-'">{{item.complete}}</td>
                        <td v-else>-</td>

                        <td>
                            {{item.target}}
                        </td>
                        <td>{{item.userName}}
                        </td>
                        <td v-if="visitCustomer.time.length!=10">{{item.signManagerNum}}</td>
                        <td class="lineOne"><span>{{item.regionName}}</span></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--拜访客户-大区经理模块-->
    <div class="templateStyle" v-if="isHasModule('visitDepart')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">拜访客户</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('visitCustomer','get_visitDepart',today)"><a href="#sales-chart"
                                                                                                    data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('visitCustomer','get_visitDepart',yesterday)"><a href="#sales-chart"
                                                                                         data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('visitCustomer','get_visitDepart',thisWeek)"><a href="#sales-chart"
                                                                                        data-toggle="tab">本周</a></li>
                <li @click="refreshData('visitCustomer','get_visitDepart',thisMonth)"><a href="#sales-chart"
                                                                                         data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('visitCustomer','get_visitDepart',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="visitDepart">
            <div style="width: 49%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <th style="width:8%" class="tableTitle">面访<br>排名
                        </th>
                        <th style="width:8%" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:15%" class="tableTitle">大区</th>
                        <th style="width:10%" class="tableTitle">大区经理</th>
                        <th style="width:8%" class="tableTitle">目标
                        </th>
                        <th style="width:8%" class="tableTitle">完成
                        </th>
                        <th style="width:8%" class="tableTitle">完成率</th>
                        <th style="width:10%" class="tableTitle">区域经理</br>在职人数</th>
                        <th style="width:10%" class="tableTitle">区域经理</br>请假人数</th>
                        <th style="width:10%" class="tableTitle">区域经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in visitCustomer.faceList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td
                                class="lineOne"><span style="text-align: center;">{{item.departName}}</span></td>
                        <td>
                            <span v-if="item.bigManagerName">{{item.bigManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="isCheckRegionName(item)&&item.complete!='-'" style="color:#169BD5;cursor: pointer"
                            @click="lookInterviewDepart(item,'1')">
                            {{item.complete}}
                        </td>
                        <td v-else-if="item.complete!='-'">{{item.complete}}</td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>
                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{visitCustomer.bigcalculation[1].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{visitCustomer.bigcalculation[1].targetDayCount}}</td>
                        <td>{{visitCustomer.bigcalculation[1].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{visitCustomer.bigcalculation[1].regionManagerNum}}</td>
                        <td>{{visitCustomer.bigcalculation[1].leaveNumber}}</td>
                        <td>{{visitCustomer.bigcalculation[1].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="width: 49%;float:right;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <th style="width:8%" class="tableTitle">电访<br>排名
                        </th>
                        <th style="width:8%" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:15%" class="tableTitle">大区</th>
                        <th style="width:10%" class="tableTitle">大区经理</th>
                        <th style="width:8%" class="tableTitle">目标
                        </th>
                        <th style="width:8%" class="tableTitle">完成
                        </th>
                        <th style="width:8%" class="tableTitle">完成率
                        </th>
                        <th style="width:10%" class="tableTitle">区域经理</br>在职人数</th>
                        <th style="width:10%" class="tableTitle">区域经理</br>请假人数</th>
                        <th style="width:10%" class="tableTitle">区域经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in visitCustomer.telList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td><span style="text-align: center;">{{item.departName}}</span></td>
                        <td>
                            <span v-if="item.bigManagerName">{{item.bigManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="isCheckRegionName(item)&&item.complete!='-'" style="color:#169BD5;cursor: pointer"
                            @click="lookInterviewDepart(item,'0')">
                            {{item.complete}}
                        </td>
                        <td v-else-if="item.complete!='-'">{{item.complete}}</td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>

                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{visitCustomer.bigcalculation[0].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{visitCustomer.bigcalculation[0].targetDayCount}}</td>
                        <td>{{visitCustomer.bigcalculation[0].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{visitCustomer.bigcalculation[0].regionManagerNum}}</td>
                        <td>{{visitCustomer.bigcalculation[0].leaveNumber}}</td>
                        <td>{{visitCustomer.bigcalculation[0].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--拜访客户-公司级别模块-->
    <div class="templateStyle" v-if="isHasModule('visitCompany')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">拜访客户</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('visitCustomer','get_visitCompany',today)"><a href="#sales-chart"
                                                                                                     data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('visitCustomer','get_visitCompany',yesterday)"><a href="#sales-chart"
                                                                                          data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('visitCustomer','get_visitCompany',thisWeek)"><a href="#sales-chart"
                                                                                         data-toggle="tab">本周</a></li>
                <li @click="refreshData('visitCustomer','get_visitCompany',thisMonth)"><a href="#sales-chart"
                                                                                          data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('visitCustomer','get_visitCompany',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
                <button type="button" class="btn oaBtn btn-sm" style="float: right;"
                        @click="lookInterviewDepartForButton()">今日首次面访报表
                </button>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="visitCompany">
            <div style="width: 49%;" class="mScrollBox">
                <table class="table text-center table-width" style="table-layout: auto;">
                    <thead>
                    <tr>
                        <th style="width:60px" class="tableTitle">面访<br>排名
                        </th>
                        <th style="width:45px" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:70px" class="tableTitle">大区</th>
                        <th style="width:85px" class="tableTitle">大区经理</th>
                        <th style="width:55px" class="tableTitle">目标
                        </th>
                        <th style="width:55px" class="tableTitle">完成
                        </th>
                        <th style="width:55px" class="tableTitle">完成率</th>
                        <th style="width:85px" class="tableTitle">区域经理</br>在职人数</th>
                        <th style="width:85px" class="tableTitle">区域经理</br>请假人数</th>
                        <th style="width:85px" class="tableTitle">区域经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in visitCustomer.faceList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td class="lineOne"><span style="text-align:center;">{{item.departName}}</span>
                        </td>
                        <td>
                            <span v-if="item.bigManagerName">{{item.bigManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="item.complete!='-'" style="text-align:center;color:#169BD5;cursor: pointer"
                            @click="lookInterviewDepart(item),'1'">{{item.complete}}
                        </td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>
                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{visitCustomer.bigcalculation[1].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{visitCustomer.bigcalculation[1].targetDayCount}}</td>
                        <td>{{visitCustomer.bigcalculation[1].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{visitCustomer.bigcalculation[1].regionManagerNum}}</td>
                        <td>{{visitCustomer.bigcalculation[1].leaveNumber}}</td>
                        <td>{{visitCustomer.bigcalculation[1].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="width: 49%;float:right;" class="mScrollBox">
                <table class="table text-center table-width" style="table-layout: auto;">
                    <thead>
                    <tr>
                        <th style="width:60px" class="tableTitle">电访<br>排名
                        </th>
                        <th style="width:45px" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:70px" class="tableTitle">大区</th>
                        <th style="width:85px" class="tableTitle">大区经理</th>
                        <th style="width:60px" class="tableTitle">目标
                        </th>
                        <th style="width:60px" class="tableTitle">完成
                        </th>
                        <th style="width:60px" class="tableTitle">完成率
                        </th>
                        <th style="width:85px" class="tableTitle">区域经理</br>在职人数</th>
                        <th style="width:85px" class="tableTitle">区域经理</br>请假人数</th>
                        <th style="width:85px" class="tableTitle">区域经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in visitCustomer.telList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td class="lineOne"><span style="text-align:center;">{{item.departName}}</span></td>
                        <td>
                            <span v-if="item.bigManagerName">{{item.bigManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="item.complete!='-'" style="text-align:center;color:#169BD5;cursor: pointer"
                            @click="lookInterviewDepart(item),'0'">{{item.complete}}
                        </td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>
                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{visitCustomer.bigcalculation[0].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{visitCustomer.bigcalculation[0].targetDayCount}}</td>
                        <td>{{visitCustomer.bigcalculation[0].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{visitCustomer.bigcalculation[0].regionManagerNum}}</td>
                        <td>{{visitCustomer.bigcalculation[0].leaveNumber}}</td>
                        <td>{{visitCustomer.bigcalculation[0].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--拜访客户-集团经理模块-->
    <div class="templateStyle" v-if="isHasModule('visitGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">拜访客户</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>

                <li class="active" @click="refreshData('visitCustomer','get_visitGroup',today)"><a href="#sales-chart"
                                                                                                   data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('visitCustomer','get_visitGroup',yesterday)"><a href="#sales-chart"
                                                                                        data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('visitCustomer','get_visitGroup',thisWeek)"><a href="#sales-chart"
                                                                                       data-toggle="tab">本周</a></li>
                <li @click="refreshData('visitCustomer','get_visitGroup',thisMonth)"><a href="#sales-chart"
                                                                                        data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('visitCustomer','get_visitGroup',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="visitGroup">
            <div style="width: 49%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <th style="width:8%" class="tableTitle">面访<br>排名
                        </th>
                        <th style="width:8%" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:15%;" class="tableTitle">公司</th>
                        <th style="width:10%" class="tableTitle">总经理<br>销售总监</th>
                        <th style="width:8%" class="tableTitle">目标
                        </th>
                        <th style="width:8%" class="tableTitle">完成
                        </th>
                        <th style="width:10%" class="tableTitle">完成率
                        </th>
                        <th style="width:10%" class="tableTitle">区域经理</br>在职人数</th>
                        <th style="width:5%" class="tableTitle">请假<br>人数
                        </th>
                        <th style="width:10%" class="tableTitle">区域经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in visitCustomer.JtfaceList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td class="lineOne"><span style="text-align: center;">{{item.companyName}}</span></td>
                        <td>
                            <span v-if="item.managerName">{{item.managerName}}</span>
                            <span v-else-if="item.salerManagerName">{{item.salerManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="item.complete!='-'" style="text-align:center;color:#169BD5;cursor: pointer"
                            @click="lookInterviewCompany(item),'1'">{{item.complete}}
                        </td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>
                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{visitCustomer.Jtbigcalculation[1].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{visitCustomer.Jtbigcalculation[1].targetDayCount}}</td>
                        <td>{{visitCustomer.Jtbigcalculation[1].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{visitCustomer.Jtbigcalculation[1].regionManagerNum}}</td>
                        <td>{{visitCustomer.Jtbigcalculation[1].leaveNumber}}</td>
                        <td>{{visitCustomer.Jtbigcalculation[1].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="width: 49%;float:right;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <th style="width:8%" class="tableTitle">电访<br>排名
                        </th>
                        <th style="width:8%" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:15%" class="tableTitle">公司</th>
                        <th style="width:10%" class="tableTitle">总经理<br>销售总监</th>
                        <th style="width:8%" class="tableTitle">目标
                        </th>
                        <th style="width:8%" class="tableTitle">完成
                        </th>
                        <th style="width:10%" class="tableTitle">完成率
                        </th>
                        <th style="width:10%" class="tableTitle">区域经理</br>在职人数</th>
                        <th style="width:5%" class="tableTitle">请假<br>人数
                        </th>
                        <th style="width:10%" class="tableTitle">区域经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in visitCustomer.JttelList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td class="lineOne"><span style="text-align: center;">{{item.companyName}}</span></td>
                        <td>
                            <span v-if="item.managerName">{{item.managerName}}</span>
                            <span v-else-if="item.salerManagerName">{{item.salerManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="item.complete!='-'" style="text-align:center;color:#169BD5;cursor: pointer"
                            @click="lookInterviewCompany(item),'0'">{{item.complete}}
                        </td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>
                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{visitCustomer.Jtbigcalculation[0].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{visitCustomer.Jtbigcalculation[0].targetDayCount}}</td>
                        <td>{{visitCustomer.Jtbigcalculation[0].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{visitCustomer.Jtbigcalculation[0].regionManagerNum}}</td>
                        <td>{{visitCustomer.Jtbigcalculation[0].leaveNumber}}</td>
                        <td>{{visitCustomer.Jtbigcalculation[0].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--大客户拜访-大客户经理模块-->
    <div class="templateStyle" v-if="isHasModule('bigVisitPersonal')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName" style="font-size:19px">大客户拜访</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('bigVisitCustomer','get_bigVisitPersonal',today)"><a
                        href="#sales-chart"
                        data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('bigVisitCustomer','get_bigVisitPersonal',yesterday)"><a href="#sales-chart"
                                                                                                 data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('bigVisitCustomer','get_bigVisitPersonal',thisWeek)"><a href="#sales-chart"
                                                                                                data-toggle="tab">本周</a>
                </li>
                <li @click="refreshData('bigVisitCustomer','get_bigVisitPersonal',thisMonth)"><a href="#sales-chart"
                                                                                                 data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab" @click="refreshData('bigVisitCustomer','get_bigVisitPersonal',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="bigVisitPersonal">
            <div style="width: 49%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 48px;">序号</th>-->
                        <th style="width: 85px;" class="tableTitle">面访排名
                        </th>
                        <th style="width:85px" class="tableTitle" v-if="bigVisitCustomer.time.length!=10">日均完成</th>
                        <th style="width: 50px;" class="tableTitle">完成
                        </th>
                        <th style="width: 50px;" class="tableTitle">目标</th>
                        <th style="width: 70px;" class="tableTitle">姓名</th>
                        <th style="width:85px" class="tableTitle" v-if="bigVisitCustomer.time.length!=10">出勤天数</th>
                        <th style="width: 280px;" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in bigVisitCustomer.faceList">
                        <!--<td>{{i+1}}</td>-->
                        <td>{{item.rownum}}</td>
                        <td v-if="bigVisitCustomer.time.length!=10">{{item.averageComplete}}</td>
                        <td v-if="userId==item.userId&&item.complete!='-'" style="color:#169BD5;cursor: pointer"
                            @click="lookBigInterview(item,'1')">
                            {{item.complete}}
                        </td>
                        <td v-else-if="item.complete!='-'">{{item.complete}}</td>
                        <td v-else>-</td>
                        <td>
                            {{item.target}}
                        </td>
                        <td>{{item.userName}}
                        </td>
                        <td v-if="bigVisitCustomer.time.length!=10">{{item.signManagerNum}}</td>
                        <td class="lineOne"><span>{{item.regionName}}</span></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="width: 48%;float:right;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 48px;">序号</th>-->
                        <th style="width: 85px;" class="tableTitle">电访排名
                        </th>
                        <th style="width:85px" class="tableTitle" v-if="bigVisitCustomer.time.length!=10">日均完成</th>
                        <th style="width: 50px;" class="tableTitle">完成
                        </th>
                        <th style="width: 50px;" class="tableTitle">目标</th>
                        <th style="width: 70px;" class="tableTitle">姓名</th>
                        <th style="width:85px" class="tableTitle" v-if="bigVisitCustomer.time.length!=10">出勤天数</th>
                        <th style="width: 280px;" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in bigVisitCustomer.telList">
                        <!--<td>{{i+1}}</td>-->
                        <td>{{item.rownum}}</td>
                        <td v-if="bigVisitCustomer.time.length!=10">{{item.averageComplete}}</td>
                        <td v-if="userId==item.userId&&item.complete!='-'" style="color:#169BD5;cursor: pointer"
                            @click="lookBigInterview(item,'0')">
                            {{item.complete}}
                        </td>
                        <td v-else-if="item.complete!='-'">{{item.complete}}</td>
                        <td v-else>-</td>

                        <td>
                            {{item.target}}
                        </td>
                        <td>{{item.userName}}
                        </td>
                        <td v-if="bigVisitCustomer.time.length!=10">{{item.signManagerNum}}</td>
                        <td class="lineOne"><span>{{item.regionName}}</span></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--大客户拜访-大客户总监模块-->
    <div class="templateStyle" v-if="isHasModule('bigVisitDepart')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName" style="font-size:19px">大客户拜访</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('bigVisitCustomer','get_bigVisitDepart',today)"><a
                        href="#sales-chart"
                        data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('bigVisitCustomer','get_bigVisitDepart',yesterday)"><a href="#sales-chart"
                                                                                               data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('bigVisitCustomer','get_bigVisitDepart',thisWeek)"><a href="#sales-chart"
                                                                                              data-toggle="tab">本周</a>
                </li>
                <li @click="refreshData('bigVisitCustomer','get_bigVisitDepart',thisMonth)"><a href="#sales-chart"
                                                                                               data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab" @click="refreshData('bigVisitCustomer','get_bigVisitDepart',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="bigVisitDepart">
            <div style="width: 49%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <th style="width:8%" class="tableTitle">面访<br>排名
                        </th>
                        <th style="width:8%" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:10%" class="tableTitle">部门</th>
                        <th style="width:8%" class="tableTitle">大客户<br>总经理</th>
                        <th style="width:6%" class="tableTitle">目标
                        </th>
                        <th style="width:6%" class="tableTitle">完成
                        </th>
                        <th style="width:8%" class="tableTitle">完成率</th>
                        <th style="width:12%" class="tableTitle">大客户经理</br>在职人数</th>
                        <th style="width:12%" class="tableTitle">大客户经理</br>请假人数</th>
                        <th style="width:12%" class="tableTitle">大客户经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in bigVisitCustomer.faceList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td
                                class="lineOne"><span style="text-align: center;">{{item.departName}}</span></td>
                        <td>
                            <span v-if="item.bigManagerName">{{item.bigManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="isCheckRegionName(item)&&item.complete!='-'" style="color:#169BD5;cursor: pointer"
                            @click="lookBigInterviewDepart(item,'1')">
                            {{item.complete}}
                        </td>
                        <td v-else-if="item.complete!='-'">{{item.complete}}</td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>
                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].targetDayCount}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].regionManagerNum}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].leaveNumber}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="width: 49%;float:right;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <th style="width:8%" class="tableTitle">电访<br>排名
                        </th>
                        <th style="width:8%" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:10%" class="tableTitle">部门</th>
                        <th style="width:8%" class="tableTitle">大客户<br>总经理</th>
                        <th style="width:6%" class="tableTitle">目标
                        </th>
                        <th style="width:6%" class="tableTitle">完成
                        </th>
                        <th style="width:8%" class="tableTitle">完成率</th>
                        <th style="width:12%" class="tableTitle">大客户经理</br>在职人数</th>
                        <th style="width:12%" class="tableTitle">大客户经理</br>请假人数</th>
                        <th style="width:12%" class="tableTitle">大客户经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in bigVisitCustomer.telList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td
                                class="lineOne"><span style="text-align: center;">{{item.departName}}</span></td>
                        <td>
                            <span v-if="item.bigManagerName">{{item.bigManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="isCheckRegionName(item)&&item.complete!='-'" style="color:#169BD5;cursor: pointer"
                            @click="lookBigInterviewDepart(item,'1')">
                            {{item.complete}}
                        </td>
                        <td v-else-if="item.complete!='-'">{{item.complete}}</td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>
                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].targetDayCount}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].regionManagerNum}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].leaveNumber}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--大客户拜访-集团模块-->
    <div class="templateStyle" v-if="isHasModule('bigVisitGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName" style="font-size:19px">大客户拜访</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('bigVisitCustomer','get_bigVisitGroup',today)"><a
                        href="#sales-chart"
                        data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('bigVisitCustomer','get_bigVisitGroup',yesterday)"><a href="#sales-chart"
                                                                                              data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('bigVisitCustomer','get_bigVisitGroup',thisWeek)"><a href="#sales-chart"
                                                                                             data-toggle="tab">本周</a>
                </li>
                <li @click="refreshData('bigVisitCustomer','get_bigVisitGroup',thisMonth)"><a href="#sales-chart"
                                                                                              data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab" @click="refreshData('bigVisitCustomer','get_bigVisitGroup',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="bigVisitGroup">
            <div style="width: 49%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <th style="width:8%" class="tableTitle">面访<br>排名
                        </th>
                        <th style="width:8%" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:15%;" class="tableTitle">公司</th>
                        <th style="width:10%" class="tableTitle">大客户总经理<br>大客户总监</th>
                        <th style="width:8%" class="tableTitle">目标
                        </th>
                        <th style="width:8%" class="tableTitle">完成
                        </th>
                        <th style="width:10%" class="tableTitle">完成率
                        </th>
                        <th style="width:10%" class="tableTitle">大客户经理</br>在职人数</th>
                        <th style="width:5%" class="tableTitle">请假<br>人数
                        </th>
                        <th style="width:10%" class="tableTitle">大客户经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in bigVisitCustomer.faceList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td class="lineOne"><span style="text-align: center;">{{item.companyName}}</span></td>
                        <td>
                            <span v-if="item.managerName">{{item.managerName}}</span>
                            <span v-else-if="item.salerManagerName">{{item.salerManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="item.complete!='-'" style="text-align:center;color:#169BD5;cursor: pointer"
                            @click="lookBigInterviewCompany(item),'1'">{{item.complete}}
                        </td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>
                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].targetDayCount}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].regionManagerNum}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].leaveNumber}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[1].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div style="width: 49%;float:right;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <th style="width:8%" class="tableTitle">电访<br>排名
                        </th>
                        <th style="width:8%" class="tableTitle">人均<br>完成
                        </th>
                        <th style="width:15%" class="tableTitle">公司</th>
                        <th style="width:10%" class="tableTitle">大客户总经理<br>大客户总监</th>
                        <th style="width:8%" class="tableTitle">目标
                        </th>
                        <th style="width:8%" class="tableTitle">完成
                        </th>
                        <th style="width:10%" class="tableTitle">完成率
                        </th>
                        <th style="width:10%" class="tableTitle">大客户经理</br>在职人数</th>
                        <th style="width:5%" class="tableTitle">请假<br>人数
                        </th>
                        <th style="width:10%" class="tableTitle">大客户经理</br>标配人数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in bigVisitCustomer.telList">
                        <td>{{item.rownum}}</td>
                        <td>{{item.averageComplete}}</td>
                        <td class="lineOne"><span style="text-align: center;">{{item.companyName}}</span></td>
                        <td>
                            <span v-if="item.managerName">{{item.managerName}}</span>
                            <span v-else-if="item.salerManagerName">{{item.salerManagerName}}</span>
                            <span v-else style="color: #CCCCCC;">空缺</span>
                        </td>
                        <td>{{item.target}}</td>
                        <td v-if="item.complete!='-'" style="text-align:center;color:#169BD5;cursor: pointer"
                            @click="lookBigInterviewCompany(item),'1'">{{item.complete}}
                        </td>
                        <td v-else>-</td>
                        <td v-if="item.completionRate!=''&&item.completionRate!='-'">{{item.completionRate}}%</td>
                        <td v-else>-</td>
                        <td>{{item.regionManagerNum}}</td>
                        <td>{{item.leaveNumber}}</td>
                        <td>{{item.managerTargetNum}}</td>
                    </tr>
                    <tr>
                        <td>合计</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].daily}}</td>
                        <td>-</td>
                        <td>-</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].targetDayCount}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].finishDayCount}}</td>
                        <td>-</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].regionManagerNum}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].leaveNumber}}</td>
                        <td>{{bigVisitCustomer.bigcalculation[0].managerTargetNum}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--陪同拜访客户-大区经理模块-->
    <div class="templateStyle" v-if="isHasModule('visitClientDepart')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">陪跑拜访</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('visitClientCustomer','get_visitClientDepart',today)"><a
                        href="#sales-chart" data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('visitClientCustomer','get_visitClientDepart',yesterday)"><a href="#sales-chart"
                                                                                                     data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('visitClientCustomer','get_visitClientDepart',thisWeek)"><a href="#sales-chart"
                                                                                                    data-toggle="tab">本周</a>
                </li>
                <li @click="refreshData('visitClientCustomer','get_visitClientDepart',thisMonth)"><a href="#sales-chart"
                                                                                                     data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab"
                    @click="refreshData('visitClientCustomer','get_visitClientDepart',item.time)"><a href="#sales-chart"
                                                                                                     data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="visitClientDepart">
            <div style="width: 100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width:5%">序号</th>-->

                        <th style="width: 8%;text-align: center" class="tableTitle">大区</th>
                        <th style="width: 8%;text-align: center" class="tableTitle">大区经理</th>
                        <th style="width: 8%;text-align: center" class="tableTitle">
                            陪跑区域经理
                        </th>
                        <th style="width: 8%;text-align: center" class="tableTitle">
                            陪跑客户数量
                        </th>
                        <th style="width: 68%;ext-align: center" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody v-cloak>
                    <template v-if="visitClientCustomer.list.length>0">
                        <tr v-for="(item,i) in visitClientCustomer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}"
                                style="text-align: center">{{item.departName}}
                            </td>
                            <td :rowspan="item.managerNamespan" :class="{hidden: item.managerNamedis}"
                                style="text-align: center">{{item.managerName}}
                            </td>


                            <td style="text-align: center;" :class="item.entourageName=='无'?'userStyle':''">
                                {{item.entourageName}}<span v-if="item.jobState==-2" class="tryStyle">试岗</span><span
                                    v-if="item.jobState==-1" class="tryStyle">试用</span></td>

                            <td v-if="isCheckRegionName(item)&&item.visitCount!='-'"
                                style="color:#169BD5;cursor: pointer;text-align: center"
                                @click="lookRegionList(item)" :class="item.entourageName=='无'?'userStyle':''">
                                {{item.visitCount}}
                            </td>
                            <td v-else style="text-align: center" :class="item.entourageName=='无'?'userStyle':''">
                                {{item.visitCount}}
                            </td>

                            <td style="text-align: left" :class="item.entourageName=='无'?'userStyle':''">
                                {{item.regionName}}
                            </td>
                        </tr>
                        <tr v-if="visitClientCustomer.list.length!=0">
                            <td>合计</td>
                            <td>-</td>
                            <td>-</td>
                            <td>{{visitClientCustomer.visitCount}}</td>
                            <td>-</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="5">暂无数据</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--陪同拜访客户-公司经理模块-->
    <div class="templateStyle" v-if="isHasModule('visitClientCompany')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">陪跑拜访</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('visitClientCustomer','get_visitClientCompany',today)"><a
                        href="#sales-chart" data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('visitClientCustomer','get_visitClientCompany',yesterday)"><a
                        href="#sales-chart" data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('visitClientCustomer','get_visitClientCompany',thisWeek)"><a href="#sales-chart"
                                                                                                     data-toggle="tab">本周</a>
                </li>
                <li @click="refreshData('visitClientCustomer','get_visitClientCompany',thisMonth)"><a
                        href="#sales-chart" data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab"
                    @click="refreshData('visitClientCustomer','get_visitClientCompany',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="visitClientCompany">
            <div style="width: 100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width:5%">序号</th>-->
                        <th style="width: 10%;text-align: center" class="tableTitle">大区经理</th>
                        <th style="width: 10%;text-align: center" class="tableTitle">大区</th>
                        <th style="width: 10%;text-align: center" class="tableTitle">
                            陪跑区域<br>经理
                        </th>
                        <th style="width: 10%;text-align: center" class="tableTitle">
                            陪跑客户<br>数量
                        </th>
                        <th style="width: 55%;text-align: center" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody v-cloak>
                    <template v-if="visitClientCustomer.list.length>0">
                        <tr v-for="(item,i) in visitClientCustomer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.managerNamespan" :class="{hidden: item.managerNamedis}"
                                style="text-align: center">{{item.managerName}}
                            </td>
                            <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}"
                                style="text-align: center">{{item.departName}}
                            </td>
                            <td style="text-align: center;" :class="item.entourageName=='无'?'userStyle':''">
                                {{item.entourageName}}<span v-if="item.jobState==-2" class="tryStyle">试岗</span><span
                                    v-if="item.jobState==-1" class="tryStyle">试用</span></td>
                            <td v-if="isCheck(item)"
                                style="color:#169BD5;cursor: pointer;text-align: center"
                                @click="lookRegionList(item)" :class="item.entourageName=='无'?'userStyle':''">
                                {{item.visitCount}}
                            </td>
                            <td v-else style="text-align: center" :class="item.entourageName=='无'?'userStyle':''">
                                {{item.visitCount}}
                            </td>
                            <td style="text-align: left" :class="item.entourageName=='无'?'userStyle':''">
                                {{item.regionName}}
                            </td>
                        </tr>
                        <tr v-if="visitClientCustomer.list.length!=0">
                            <td>合计</td>
                            <td>-</td>
                            <td>-</td>
                            <td>{{visitClientCustomer.visitCount}}</td>
                            <td>-</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="5">暂无数据</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--大区拜访客户-集团模块-->
    <div class="templateStyle" v-if="isHasModule('daQuVisitGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">大区拜访</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('daQuVisitGroup','get_daQuVisitGroup',today)"><a
                        href="#sales-chart" data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('daQuVisitGroup','get_daQuVisitGroup',yesterday)"><a href="#sales-chart"
                                                                                             data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('daQuVisitGroup','get_daQuVisitGroup',thisWeek)"><a href="#sales-chart"
                                                                                            data-toggle="tab">本周</a>
                </li>
                <li @click="refreshData('daQuVisitGroup','get_daQuVisitGroup',thisMonth)"><a href="#sales-chart"
                                                                                             data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab"
                    @click="refreshData('daQuVisitGroup','get_daQuVisitGroup',item.time)"><a href="#sales-chart"
                                                                                             data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="daQuVisitGroup">
            <div style="width: 100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%">序号</th>-->
                        <th style="width: 20%;text-align: center" class="tableTitle">公司</th>
                        <th style="width:15%;text-align: center" class="tableTitle">总经理销售总监</th>
                        <th style="width:15%;;text-align: center" class="tableTitle">
                            大区经理数量
                        </th>
                        <th style="width:15%;text-align: center" class="tableTitle">
                            陪跑区域经理数量
                        </th>
                        <th style="width:15%;text-align: center" class="tableTitle">
                            拜访客户数量
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="daQuVisitGroup.list.length>0">
                        <tr v-for="(item,i) in daQuVisitGroup.list">
                            <td style="text-align: center">{{item.companyName}}</td>
                            <td>
                                <span v-if="item.managerName">{{item.managerName}}</span>
                                <span v-else-if="item.salerManagerName">{{item.salerManagerName}}</span>
                                <span v-else style="color: #CCCCCC;">空缺</span>
                            </td>
                            <td style="text-align: center">
                                {{item.bigRegionManagerNum==''?'-':item.bigRegionManagerNum}}
                            </td>
                            <td style="text-align: center">{{item.managerCount==''?'-':item.managerCount}}</td>
                            <td v-if="item.customerCount==''||item.customerCount=='-'">-</td>
                            <td v-else @click="openDaQuCompany(item)" style="color:#169BD5;cursor: pointer">
                                {{item.customerCount}}
                            </td>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>-</td>
                            <td>{{daQuVisitGroup.bigRegionManagerNum}}</td>
                            <td>{{daQuVisitGroup.managerCount}}</td>
                            <td>{{daQuVisitGroup.customerCount}}</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="5">暂无数据</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;width:190px;">-->
            <!--<div>陪跑区域经理数量(总)：{{visitClientCustomer.managerCount}}</div>-->
            <!--<div>大区经理面访客户(总)：{{visitClientCustomer.visitCount}}</div>-->
            <!--<div>标配大区经理数量(总)：{{visitClientCustomer.managerTargetNum}}</div>-->
            <!--<div>现有大区经理数量(总)：{{visitClientCustomer.regionManagerNum}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--大区拜访客户-公司模块-->
    <div class="templateStyle" v-if="isHasModule('daQuVisitCompany')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">大区拜访</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li :class="today == daQuVisitCompany.time && a==1?'active':''"
                    @click="a=1;refreshData('daQuVisitCompany','get_daQuVisitCompany',today)">
                    <a href="#sales-chart" data-toggle="tab">今日</a>
                </li>
                <li :class="isActive(yesterday)?'active':''"
                    @click="refreshData('daQuVisitCompany','get_daQuVisitCompany',yesterday)"><a
                        href="#sales-chart"
                        data-toggle="tab">昨日</a></li>
                <li :class="isActive(thisWeek)?'active':''"
                    @click="refreshData('daQuVisitCompany','get_daQuVisitCompany',thisWeek)"><a
                        href="#sales-chart"
                        data-toggle="tab">本周</a></li>
                <li :class="isActive(thisMonth)?'active':''"
                    @click="refreshData('daQuVisitCompany','get_daQuVisitCompany',thisMonth)"><a
                        href="#sales-chart"
                        data-toggle="tab">本月</a></li>
                <li :class="isActive(item.time)?'active':''" v-for="(item,i) in tab"
                    @click="refreshData('daQuVisitCompany','get_daQuVisitCompany',item.time)"><a
                        href="#sales-chart"
                        data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
                <!--<button type="button" class="btn oaBtn btn-sm" :class="today == visitCustomer.time &&a==0?'active':''" @click="a=0;refreshData('visitCustomer','get_visitDepart',today)" style="float: right;">-->
                <!--<a href="#sales-chart" data-toggle="tab" >今日首次面访</a>-->
                <!--</button>-->
                <button type="button" class="btn oaBtn btn-sm" style="float: right;"
                        @click="a=0;refreshData('daQuVisitCompany','get_daQuVisitCompany',today)">今日首次面访报表
                </button>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="daQuVisitCompany">
            <div style="width: 100%;margin:0 auto;" class="mScrollBox">
                <table class="table text-center table-width table-bordered">
                    <thead>
                    <tr>
                        <th style="width:6%;" class="tableTitle">大区经理</th>

                        <!--(visitCustomer.time.length==10 && a==1) || visitCustomer.time.length!=10-->
                        <th v-if=" !(daQuVisitCompany.time==today && a==0)"
                            style="width:6%;" class="tableTitle">面访计划
                        </th>
                        <th v-if=" !(daQuVisitCompany.time==today && a==0)"
                            style="width:6%;" class="tableTitle">面访完成
                        </th>

                        <th v-if="daQuVisitCompany.time.length!=10" style="width:6%;" class="tableTitle">出勤天数</th>
                        <th v-if="daQuVisitCompany.time.length!=10" style="width:6%;" class="tableTitle">日均完成</th>
                        <th v-if="daQuVisitCompany.time.length==10"
                            style="width: 6%;border-left: 1px solid #cbcbcd;" class="tableTitle">考勤签到<br>时间
                        </th>
                        <th v-if="daQuVisitCompany.time.length==10" style="width: 6%;" class="tableTitle">首次面访<br>陪同人员
                        </th>
                        <th v-if="daQuVisitCompany.time.length==10" style="width: 6%;" class="tableTitle">首次面访<br>签到时间
                        </th>
                        <th v-if="daQuVisitCompany.time.length==10" style="width: 7%;" class="tableTitle">时间间隔</th>
                        <th v-if="daQuVisitCompany.time.length==10" style="width: 6%;" class="tableTitle">距离间隔<br>(公里)
                        </th>
                        <th v-if="daQuVisitCompany.time.length==10" style="width: 6%;" class="tableTitle">时速<br>(km/h)
                        </th>
                        <th v-if="(daQuVisitCompany.time==today && a==1)||daQuVisitCompany.time==yesterday&&daQuVisitCompany.time.length==10"
                            style="width: 6%;border-left: 2px solid #169bd5;" class="tableTitle">考勤签退<br>时间
                        </th>
                        <th v-if="(daQuVisitCompany.time==today && a==1)||daQuVisitCompany.time==yesterday&&daQuVisitCompany.time.length==10"
                            style="width: 6%;" class="tableTitle">末次面访<br>签退时间
                        </th>
                        <th v-if="(daQuVisitCompany.time==today && a==1)||daQuVisitCompany.time==yesterday&&daQuVisitCompany.time.length==10"
                            style="width: 6%;" class="tableTitle">末次面访<br>陪同人员
                        </th>
                        <th v-if="(daQuVisitCompany.time==today && a==1)||daQuVisitCompany.time==yesterday&&daQuVisitCompany.time.length==10"
                            style="width: 7%;" class="tableTitle">时间间隔
                        </th>
                        <th v-if="(daQuVisitCompany.time==today && a==1)||daQuVisitCompany.time==yesterday&&daQuVisitCompany.time.length==10"
                            style="width: 6%;" class="tableTitle">距离间隔<br>(公里)
                        </th>
                        <th v-if="(daQuVisitCompany.time==today && a==1)||daQuVisitCompany.time==yesterday&&daQuVisitCompany.time.length==10"
                            style="width: 6%;" class="tableTitle">时速<br>(km/h)
                        </th>
                        <th style="border-left: 1px solid #cbcbcd;" class="tableTitle">大区</th>
                        <th v-if="daQuVisitCompany.time==today &&a==0"
                            style="border-left: 1px solid #cbcbcd;width: 48%;" class="tableTitle">备注
                        </th>
                    </tr>
                    </thead>
                    <tbody v-cloak>
                    <tr v-for="(item,i) in daQuVisitCompany.faceList">
                        <!--大区经理-->
                        <td>{{item.name}}</td>
                        <!--计划-->
                        <template v-if="!(daQuVisitCompany.time==today && a==0)">
                            <!--<td @click="openPlan(item)" style="color:#169BD5;cursor: pointer" >{{item.planCount}}</td>-->
                            <td v-if="isCheckRegionName(item)&&item.planCount!='-'"
                                style="color:#169BD5;cursor: pointer"
                                @click="openPlan(item)">
                                {{item.planCount}}
                            </td>
                            <td v-else-if="item.planCount!='-'">{{item.planCount}}</td>
                            <td v-else>-</td>
                        </template>
                        <!--完成-->
                        <!--<template v-if="!(daQuVisitCompany.time==today && a==0)">-->
                        <!--<td @click="openInterview(item,'1')" style="color:#169BD5;cursor: pointer" >{{item.finishCount}}</td>-->
                        <!--</template>-->
                        <template v-if="!(daQuVisitCompany.time==today && a==0)">
                            <td v-if="isCheckRegionName(item)&&item.finishCount!='-'"
                                style="color:#169BD5;cursor: pointer"
                                @click="openInterview(item,'1')">
                                {{item.finishCount}}
                            </td>
                            <td v-else-if="item.finishCount!='-'">{{item.finishCount}}</td>
                            <td v-else>-</td>
                        </template>
                        <!--考勤签到时间-->
                        <td v-if="daQuVisitCompany.time.length==10" class="lineOne"
                            style="border-left: 1px solid rgb(203, 203, 205);">
                            <span v-if="item.signState=='1'" style="text-align: center;">请假</span>
                            <span style="text-align: center;" v-else>{{item.signInTime&&item.signInTime!='-'?item.signInTime.split(' ')[1]:'-'}}</span>
                        </td>
                        <!--首次陪同人员-->
                        <td v-if="daQuVisitCompany.time.length==10">{{item.firstFaceName}}</td>
                        <!--首次面访签到时间-->
                        <td v-if="daQuVisitCompany.time.length==10">{{item.firstFaceSignInTime.split(' ')[1]}}</td>
                        <!--签到与首次面访 时间差-->
                        <td v-if="daQuVisitCompany.time.length==10">
                            <span style="text-align: center;">{{addZeroHour(quMiao(item.signInTimeDiff))}}</span>
                        </td>
                        <!--签到与首次面访 距离差-->
                        <td v-if="daQuVisitCompany.time.length==10">
                            <span style="text-align: center;" v-if="item.signInTimeDiff != ''">{{dJq(item.signInDistance)}}</span>
                        </td>
                        <!--签到与首次面访 平均时速-->
                        <td v-if="daQuVisitCompany.time.length==10">
                            <span style="text-align: center;">{{disJq(item.signInSpeed)}}</span>
                        </td>
                        <!--出勤天数-->
                        <td v-if="daQuVisitCompany.time.length!=10"><span
                                style="text-align: center;">{{item.signInNum}}</span></td>
                        <!--日均完成-->
                        <td v-if="daQuVisitCompany.time.length!=10">
                            <span style="text-align: center;">{{item.finishCount&&item.finishCount!='-'&&item.signInNum&&item.signInNum!='-'?(item.finishCount/item.signInNum).toFixed(1):'-'}}</span>
                        </td>
                        <template v-if="(daQuVisitCompany.time==today && a==1)||daQuVisitCompany.time==yesterday">
                            <!--考勤签退时间-->
                            <td style="border-left: 2px solid rgb(22, 155, 213);">
                                <span v-if="item.signState=='1'" style="text-align: center;"></span>
                                <span v-else>{{item.signOutTime.split(' ')[1]}}</span>
                            </td>
                            <!--末次面访签退时间-->
                            <td>{{item.signOutTime&&item.signOutTime!='-'?item.endFaceSignOutTime.split(' ')[1]:''}}
                            </td>
                            <!--末次面访陪同人员-->
                            <td>{{item.signOutTime&&item.signOutTime!='-'?item.endFaceName:''}}</td>
                            <!--签退与末次面访 时间差-->
                            <td>
                                <span>
                                    {{item.signOutTime&&item.signOutTime!='-'?addZeroHour(quMiao(item.signOutTimeDiff)):''}}
                                </span>
                            </td>
                            <!--签退与末次面访 距离差-->
                            <td>
                                <span v-if="item.signOutTimeDiff != ''">{{item.signOutTime&&item.signOutTime!='-'?dJq(item.signOutDistance):''}}</span>
                            </td>
                            <!--签退与末次面访 平均时速-->
                            <td>{{item.signOutTime&&item.signOutTime!='-'?disJq(item.signOutSpeed):''}}</td>
                        </template>
                        <!--大区-->
                        <td><span>{{item.departName}}</span></td>
                        <!--问题描述-->
                        <td v-if="daQuVisitCompany.time==today &&a==0" class="lineOne"
                            style="border-left: 1px solid #cbcbcd;">
                            <span style="text-align: left;"></span>
                        </td>
                    </tr>
                    <tr v-if="!(daQuVisitCompany.time==today && a==0)">
                        <td>合计</td>
                        <!--<td>{{allDate[1].allComplete}}</td>-->
                        <td>{{daQuVisitCompany.allDate[1].planCount==0?'-':daQuVisitCompany.allDate[1].planCount}}</td>
                        <td>{{daQuVisitCompany.allDate[1].finishCount==0?'-':daQuVisitCompany.allDate[1].finishCount}}
                        </td>
                        <!--今日昨日-->
                        <template v-if="daQuVisitCompany.time==today || daQuVisitCompany.time==yesterday">
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td style="border-left: 2px solid #169bd5;">-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                        </template>
                        <template v-else>
                            <td>-</td>
                            <td>-</td>
                        </template>
                        <td>-</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <!--<div style="width: 100%;margin:0 auto;" class="mScrollBox"-->
            <!--v-if="!(daQuVisitCompany.time==today && a==0)">-->
            <!--<table class="table text-center table-width table-bordered">-->
            <!--<thead>-->
            <!--<tr>-->
            <!--<th style="width:6%;">大区经理</th>-->
            <!--&lt;!&ndash;<th align="center" style="width:40px">序号</th>&ndash;&gt;-->
            <!--<th v-if="!(daQuVisitCompany.time==today && a==0)"-->
            <!--style="width:6%;">电访完成-->
            <!--</th>-->

            <!--<th v-if="daQuVisitCompany.time.length!=10" style="width:6%;">出勤天数</th>-->
            <!--<th v-if="daQuVisitCompany.time.length!=10" style="width:6%;">日均完成</th>-->
            <!--&lt;!&ndash;<th style="border-left: 1px solid #cbcbcd;" v-if="visitCustomer.time.length!=10">大区</th>&ndash;&gt;-->
            <!--<th style="border-left: 1px solid #cbcbcd;">大区</th>-->
            <!--</tr>-->
            <!--</thead>-->
            <!--<tbody v-cloak>-->
            <!--<tr v-for="(item,i) in daQuVisitCompany.telList">-->
            <!--&lt;!&ndash;大区&ndash;&gt;-->
            <!--<td>{{item.name}}</td>-->
            <!--&lt;!&ndash;总完成&ndash;&gt;-->
            <!--&lt;!&ndash;<td style="color:#169BD5;cursor: pointer" @click="openInterview(item,'0')">{{item.finishCount}}</td>&ndash;&gt;-->
            <!--<td v-if="isCheckRegionName(item)&&item.finishCount!='-'" style="color:#169BD5;cursor: pointer"-->
            <!--@click="openInterview(item,'0')">-->
            <!--{{item.finishCount}}-->
            <!--</td>-->
            <!--<td v-else-if="item.finishCount!='-'">{{item.finishCount}}</td>-->
            <!--<td v-else>-</td>-->
            <!--&lt;!&ndash;总出勤&ndash;&gt;-->
            <!--<td v-if="daQuVisitCompany.time.length!=10">{{item.signInNum}}</td>-->
            <!--&lt;!&ndash;日均完成&ndash;&gt;-->
            <!--<td v-if="daQuVisitCompany.time.length!=10">{{item.averageComplete}}</td>-->
            <!--&lt;!&ndash;大区&ndash;&gt;-->
            <!--<td>{{item.departName}}</td>-->
            <!--</tr>-->
            <!--<tr v-if="!(daQuVisitCompany.time==today && a==0)">-->
            <!--<td>合计</td>-->
            <!--<td v-if="!(daQuVisitCompany.time==today && a==0)">-->
            <!--{{daQuVisitCompany.allDate[0].finishCount}}-->
            <!--</td>-->
            <!--<td v-if="daQuVisitCompany.time.length!=10">-</td>-->
            <!--<td v-if="daQuVisitCompany.time.length!=10">-</td>-->
            <!--<td style="border-left: 1px solid #cbcbcd;">-</td>-->
            <!--</tr>-->
            <!--</tbody>-->
            <!--</table>-->
            <!--</div>-->
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;width:190px;">-->
            <!--<div>陪跑区域经理数量(总)：{{visitClientCustomer.managerCount}}</div>-->
            <!--<div>大区经理面访客户(总)：{{visitClientCustomer.visitCount}}</div>-->
            <!--<div>标配大区经理数量(总)：{{visitClientCustomer.managerTargetNum}}</div>-->
            <!--<div>现有大区经理数量(总)：{{visitClientCustomer.regionManagerNum}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--陪同拜访客户-集团模块-->
    <div class="templateStyle" v-if="isHasModule('visitClientGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">陪跑拜访</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('visitClientCustomer','get_visitClientGroup',today)"><a
                        href="#sales-chart" data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('visitClientCustomer','get_visitClientGroup',yesterday)"><a href="#sales-chart"
                                                                                                    data-toggle="tab">昨日</a>
                </li>
                <li @click="refreshData('visitClientCustomer','get_visitClientGroup',thisWeek)"><a href="#sales-chart"
                                                                                                   data-toggle="tab">本周</a>
                </li>
                <li @click="refreshData('visitClientCustomer','get_visitClientGroup',thisMonth)"><a href="#sales-chart"
                                                                                                    data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab"
                    @click="refreshData('visitClientCustomer','get_visitClientGroup',item.time)"><a href="#sales-chart"
                                                                                                    data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="visitClientGroup">
            <div style="width: 100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%">序号</th>-->
                        <th style="width: 20%;text-align: center" class="tableTitle">公司</th>
                        <th style="width:15%;text-align: center" class="tableTitle">总经理销售总监</th>
                        <th style="width:15%;;text-align: center" class="tableTitle">
                            陪跑区域经理数量
                        </th>
                        <th style="width:15%;text-align: center" class="tableTitle">
                            大区经理面访客户数量
                        </th>
                        <th style="width:15%;text-align: center" class="tableTitle">
                            标配大区经理数量
                        </th>
                        <th style="width:15%;text-align: center" class="tableTitle">
                            现有大区经理数量
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="visitClientCustomer.list.length>0">
                        <tr v-for="(item,i) in visitClientCustomer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td style="text-align: center">{{item.companyName}}</td>
                            <td>
                                <span v-if="item.managerName">{{item.managerName}}</span>
                                <span v-else-if="item.salerManagerName">{{item.salerManagerName}}</span>
                                <span v-else style="color: #CCCCCC;">空缺</span>
                            </td>
                            <td style="text-align: center">{{item.managerCount}}</td>
                            <td style="text-align: center" v-if="item.visitCount=='0'">{{item.visitCount}}</td>
                            <td style="color:#169BD5;cursor: pointer;text-align: center"
                                @click="openVisitClientCustomerCompany(item)"
                                v-else>{{item.visitCount}}
                            </td>
                            <td style="text-align: center">{{item.managerTargetNum}}</td>
                            <td style="text-align: center">{{item.regionManagerNum}}</td>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>-</td>
                            <td>{{visitClientCustomer.managerCount}}</td>
                            <td>{{visitClientCustomer.visitCount}}</td>
                            <td>{{visitClientCustomer.managerTargetNum}}</td>
                            <td>{{visitClientCustomer.regionManagerNum}}</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="6">暂无数据</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;width:190px;">-->
            <!--<div>陪跑区域经理数量(总)：{{visitClientCustomer.managerCount}}</div>-->
            <!--<div>大区经理面访客户(总)：{{visitClientCustomer.visitCount}}</div>-->
            <!--<div>标配大区经理数量(总)：{{visitClientCustomer.managerTargetNum}}</div>-->
            <!--<div>现有大区经理数量(总)：{{visitClientCustomer.regionManagerNum}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--意向客户-区域经理模块-->
    <div class="templateStyle" v-if="isHasModule('intentionalCustomersPersonal')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">意向客户</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <!--<li class="active"><a href="#sales-chart" data-toggle="tab">本月</a></li>-->
                <!--<li v-for="(item,i) in sign.tab"><a href="#sales-chart" data-toggle="tab" >{{item}}</a></li>-->
            </ul>
            <button type="button" class="btn oaBtn btn-sm pull-right"
                    style="margin-left: 10px;position: absolute;right: 10px;top: 10px;"
                    @click="openIntentionalCustomerList()">意向客户列表
            </button>

        </div>
        <div style="padding: 0 10px;background: #fff;" id="intentionalCustomersPersonal">
            <div style="width: 100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%;">序号</th>-->
                        <th style="width: 8%" class="tableTitle">客户姓名</th>
                        <th style="width: 8%" class="tableTitle">电话</th>
                        <th style="width:8%" class="tableTitle">意向机型</th>
                        <th style="width: 8%" class="tableTitle">购买时间</th>
                        <th style="width: 8%" class="tableTitle">付款方式</th>
                        <th style="width: 60%" class="tableTitle">基本情况</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="intentionalCustomer.list.length>0">
                        <tr v-for="(item,i) in intentionalCustomer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td @click="goIntent(item.customerId)"><span
                                    style="text-align:center;color:#169BD5;cursor: pointer; "><div class="oa-name">{{item.customerName}}</div></span></td>
                            <td>{{item.customerTel}}</td>
                            <td>{{item.intentionModel}}</td>
                            <td>{{item.buyDate}}</td>
                            <td>{{item.buyType}}</td>
                            <td class="lineOne"><span>{{item.otherCondition}}</span></td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="6">暂无数据</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--意向客户-大区经理模块-->
    <div class="templateStyle" v-if="isHasModule('intentionalCustomersDepart')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">意向客户</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <!--<li class="active"><a href="#sales-chart" data-toggle="tab">本月</a></li>-->
                <!--<li v-for="(item,i) in sign.tab"><a href="#sales-chart" data-toggle="tab" >{{item}}</a></li>-->
            </ul>
            <button type="button" class="btn oaBtn btn-sm pull-right"
                    style="margin-left: 10px;position: absolute;right: 10px;top: 10px;"
                    @click="openIntentionalCustomerList()">意向客户列表
            </button>

        </div>
        <div style="padding: 0 10px;background: #fff;" id="intentionalCustomersDepart">
            <div style="width: 100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width:5%">序号</th>-->
                        <th style="width: 8%" class="tableTitle">部门/大区</th>
                        <!--                        <th style="width: 8%" class="tableTitle">岗位</th>-->
                        <th style="width: 8%" class="tableTitle">姓名</th>
                        <th style="width: 8%" class="tableTitle">本月内</th>
                        <th style="width: 8%" class="tableTitle">下月内</th>
                        <th style="width: 8%" class="tableTitle">三月内</th>
                        <th style="width: 8%" class="tableTitle">半年内</th>
                        <th style="width: 8%" class="tableTitle">总数</th>
                        <th style="width: 44%" class="tableTitle">区域</th>
                        <!--七天内	一月内	三月内	半年内	总数-->
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="intentionalCustomer.list.length>0">
                        <tr v-for="(item,i) in intentionalCustomer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}"
                                style="border-right: 1px solid #cbcbcd;">
                                {{item.departName}}
                            </td>
                            <!-- :rowspan="item.roleNamespan" :class="{hidden: item.roleNamedis}"-->
                            <!--                            <td>{{item.roleName}}</td>-->
                            <td ><div class="oa-name">{{item.genZR}}</div>
                            </td>
                            <template v-if="isCheck(item)&&item.todayMonth!='-'">
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,item.userId,true,'本月内')"
                                    style="color:#169BD5;cursor: pointer;">{{item.todayMonth}}
                                </td>
                            </template>
                            <template v-else>
                                <td>{{item.todayMonth}}
                                </td>
                            </template>
                            <template v-if="isCheck(item)&&item.nextMonth!='-'">
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,item.userId,true,'下月内')"
                                    style="color:#169BD5;cursor: pointer;">{{item.nextMonth}}
                                </td>
                            </template>
                            <template v-else>
                                <td>{{item.nextMonth}}
                                </td>
                            </template>
                            <template v-if="isCheck(item)&&item.threeMonth!='-'">
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,item.userId,true,'三月内')"
                                    style="color:#169BD5;cursor: pointer;">{{item.threeMonth}}
                                </td>
                            </template>
                            <template v-else>
                                <td>{{item.threeMonth}}
                                </td>
                            </template>
                            <template v-if="isCheck(item)&&item.halfYear!='-'">
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,item.userId,true,'半年内')"
                                    style="color:#169BD5;cursor: pointer;">{{item.halfYear}}
                                </td>
                            </template>
                            <template v-else>
                                <td>{{item.halfYear}}
                                </td>
                            </template>
                            <template v-if="isCheck(item)&&item.allNum!='-'">
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,item.userId,true,'')"
                                    style="color:#169BD5;cursor: pointer;">{{item.allNum}}
                                </td>
                            </template>
                            <template v-else>
                                <td>{{item.allNum}}
                                </td>
                            </template>
                            <td class="lineOne">
                                <span>{{item.regionName}}</span>
                            </td>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td></td>
                            <td>{{intentionalCustomer.weekNumCount}}</td>
                            <td>{{intentionalCustomer.monthNumCount}}</td>
                            <td>{{intentionalCustomer.threeNumCount}}</td>
                            <td>{{intentionalCustomer.banNianNumCount}}</td>
                            <td>{{intentionalCustomer.allNumCount}}</td>
                            <td></td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="8">暂无数据</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--意向客户-公司级别模块-->
    <div class="templateStyle" v-if="isHasModule('intentionalCustomersCompany')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">意向客户</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <!--<li class="active"><a href="#sales-chart" data-toggle="tab">本月</a></li>-->
                <!--<li v-for="(item,i) in sign.tab"><a href="#sales-chart" data-toggle="tab" >{{item}}</a></li>-->
            </ul>
            <button type="button" class="btn oaBtn btn-sm pull-right"
                    style="margin-left: 10px;position: absolute;right: 10px;top: 10px;"
                    @click="openIntentionalCustomerList()">意向客户列表
            </button>

        </div>
        <div style="padding: 0 10px;background: #fff;" id="intentionalCustomersCompany">
            <div style="width: 100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%">序号</th>-->
                        <th style="width: 10%" class="tableTitle">部门/大区</th>
<!--                        <th style="width: 10%" class="tableTitle">岗位</th>-->
                        <th style="width: 8%" class="tableTitle">姓名</th>
                        <th style="width: 8%" class="tableTitle">本月内</th>
                        <th style="width: 8%" class="tableTitle">下月内</th>
                        <th style="width: 8%" class="tableTitle">三月内</th>
                        <th style="width: 8%" class="tableTitle">半年内</th>
                        <th style="width: 8%" class="tableTitle">总数</th>
                        <th style="width: 35%" class="tableTitle">区域</th>
                        <!--七天内	一月内	三月内	半年内	总数-->
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="intentionalCustomer.list.length>0">
                        <tr v-for="(item,i) in intentionalCustomer.list">
                            <!--<td>{{i+1}}</td>-->
                            <template v-if="item.num!=0">
                                <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}"
                                    style="border-right: 1px solid #cbcbcd;">
                                    {{item.departName}}
                                </td>
                                <!-- :rowspan="item.roleNamespan" :class="{hidden: item.roleNamedis}"-->
<!--                                <td>{{item.roleName}}-->
<!--                                </td>-->
                                <td ><div class="oa-name">{{item.genZR}}</div>
                                </td>
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,item.userId,true,'本月内')"
                                    v-if="item.todayMonth!='-'"
                                    style="color:#169BD5;cursor: pointer;">{{item.todayMonth}}
                                </td>
                                <td v-else>{{item.todayMonth}}
                                </td>
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,item.userId,true,'下月内')"
                                    v-if="item.nextMonth!='-'"
                                    style="color:#169BD5;cursor: pointer;">{{item.nextMonth}}
                                </td>
                                <td v-else>{{item.nextMonth}}
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,item.userId,true,'三月内')"
                                    v-if="item.threeMonth!='-'"
                                    style="color:#169BD5;cursor: pointer;">{{item.threeMonth}}
                                </td>
                                <td v-else>{{item.threeMonth}}
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,tem.userId,true,'半年内')"
                                    v-if="item.halfYear!='-'"
                                    style="color:#169BD5;cursor: pointer;">{{item.halfYear}}
                                </td>
                                <td v-else>{{item.halfYear}}
                                <td @click="openIntentionalCustomerListByRegionId(item.regionId,item.userId,true,'')"
                                    style="color:#169BD5;cursor: pointer;">{{item.allNum}}
                                </td>
                                <td class="lineOne">
                                    <span>{{item.regionName}}</span>
                                </td>
                            </template>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>-</td>
                             <td>{{intentionalCustomer.weekNumCount}}</td>
                            <td>{{intentionalCustomer.monthNumCount}}</td>
                            <td>{{intentionalCustomer.threeNumCount}}</td>
                            <td>{{intentionalCustomer.banNianNumCount}}</td>
                            <td>{{intentionalCustomer.allNumCount}}</td>
                            <td>-</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="8">暂无数据</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--意向客户-集团级别模块-->
    <div class="templateStyle" v-if="isHasModule('intentionalCustomersGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">意向客户</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <!--<li class="active"><a href="#sales-chart" data-toggle="tab">本月</a></li>-->
                <!--<li v-for="(item,i) in sign.tab"><a href="#sales-chart" data-toggle="tab" >{{item}}</a></li>-->
            </ul>
            <button type="button" class="btn oaBtn btn-sm pull-right"
                    style="margin-left: 10px;position: absolute;right: 10px;top: 10px;"
                    @click="openIntentionalCustomerList()">意向客户列表
            </button>

        </div>
        <div style="padding: 0 10px;background: #fff;" id="intentionalCustomersGroup">
            <div style="width: 100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%;">序号</th>-->
                        <th style="width: 19%" class="tableTitle">公司名称</th>
                        <th style="width: 19%" class="tableTitle">本月内</th>
                        <th style="width: 19%" class="tableTitle">下月内</th>
                        <th style="width: 19%" class="tableTitle">三月内</th>
                        <th style="width: 19%" class="tableTitle">半年内</th>
                        <th style="width: 19%" class="tableTitle">总数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="intentionalCustomer.list.length>0">
                        <tr v-for="(item,i) in intentionalCustomer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td @click="openIntentionalCustomersDepart(item.companyId)"
                                style="color:#169BD5;cursor: pointer;">{{item.companyName}}
                            </td>
                            <td>{{item.todayMonth}}
                            </td>
                            <td>{{item.nextMonth}}
                            </td>
                            <td>{{item.threeMonth}}
                            </td>
                            <td>{{item.halfYear}}
                            </td>
                            <td>{{item.allNum}}
                            </td>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>{{intentionalCustomer.weekNumCount}}</td>
                            <td>{{intentionalCustomer.monthNumCount}}</td>
                            <td>{{intentionalCustomer.threeNumCount}}</td>
                            <td>{{intentionalCustomer.banNianNumCount}}</td>
                            <td>{{intentionalCustomer.allNumCount}}</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="6">暂无数据</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--微信转发-区域经理模块-->
    <div class="templateStyle" v-if="isHasModule('wechatPersonal')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">微信转发</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('wechat','get_wechatPersonal',today)"><a href="#sales-chart"
                                                                                                data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('wechat','get_wechatPersonal',yesterday)"><a href="#sales-chart"
                                                                                     data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('wechat','get_wechatPersonal',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('wechat','get_wechatPersonal',thisMonth)"><a href="#sales-chart"
                                                                                     data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('wechat','get_wechatPersonal',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;">
            <div style="width: 100%;" class="mScrollBox" id="wechatPersonal">
                <!-- <div style="width: 100%;">
                     <div class="infoReport">
                         <div>应转发：{{wechat.reportShare.forward}}</div>
                         <div>已转发：{{wechat.reportShare.finishForward}}</div>
                         <div>未转发：{{wechat.reportShare.noForward}}</div>
                         <div>好友数：{{wechat.reportShare.contacts}}</div>
                     </div>
                 </div>-->
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%;">序号</th>-->
                        <th style="width: 8%" class="tableTitle">日期</th>
                        <th style="width: 8%" class="tableTitle">当日好友数</th>
                        <th style="width: 8%" class="tableTitle">新增好友数</th>
                        <th style="width: 68%" class="tableTitle">转发标题</th>
                        <th style="width: 8%" class="tableTitle">转发</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="wechat.list.length>0">
                        <tr v-for="(item,i) in wechat.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.shareDatespan" :class="{hidden: item.shareDatedis}">
                                {{(item.shareDate).substr(5,10)}}
                            </td>
                            <td v-if="item.contact!=''" style="color:#169BD5;cursor: pointer"
                                @click="openImg1(item.img)">
                                {{item.contact}}
                            </td>
                            <td v-else>-</td>
                            <td>{{item.num?item.num:"-"}}</td>
                            <td class="lineOne"><span>{{item.name}}</span></td>
                            <td>
                                <i v-if="item.nightFlag==1">
                                    <i class="fa fa-check" style="color:#349f2f;"></i>
                                </i>
                                <i v-else-if="item.nightFlag==0||item.nightFlag=='-'">
                                    <i class="fa fa-close" style="color:red;"></i>
                                </i>
                            </td>
                        </tr>
                        <!--<tr>-->
                        <!--<td>合计</td>-->
                        <!--<td>-</td>-->
                        <!--<td>{{wechat.reportShare.forward}}</td>-->
                        <!--<td>{{wechat.reportShare.finishForward}}</td>-->
                        <!--<td>{{wechat.reportShare.noForward}}</td>-->
                        <!--<td>{{wechat.reportShare.contacts}}</td>-->
                        <!--<td>-</td>-->
                        <!--</tr>-->
                    </template>

                    <template v-else>
                        <tr>
                            <td colspan="5">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>

        </div>
    </div>
    <!--微信转发-大区经理模块-->
    <div class="templateStyle" v-if="isHasModule('wechatDepart')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">微信转发</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('wechat','get_wechatDepart',today)"><a href="#sales-chart"
                                                                                              data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('wechat','get_wechatDepart',yesterday)"><a href="#sales-chart"
                                                                                   data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('wechat','get_wechatDepart',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('wechat','get_wechatDepart',thisMonth)"><a href="#sales-chart"
                                                                                   data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('wechat','get_wechatDepart',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;">
            <div style="width: 100%;" class="mScrollBox" id="wechatDepart">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width:5%;">序号</th>-->
                        <th style="width: 8%" class="tableTitle">岗位</th>
                        <th style="width: 8%;" class="tableTitle">姓名</th>
                        <th style="width: 8%;" class="tableTitle">应转发</th>
                        <th style="width:8%;" class="tableTitle">已转发</th>
                        <th style="width: 8%;" class="tableTitle">未转发</th>
                        <th style="width: 8%;" class="tableTitle">好友数</th>
                        <th style="width: 52%" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="wechat.list.length>0">
                        <tr v-for="(item,i) in wechat.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.roleNamespan" :class="{hidden: item.roleNamedis}"
                                style="border-right: 1px solid #cbcbcd;">{{item.roleName}}
                            </td>
                            <td style="color:#169BD5;cursor: pointer;" @click="openWechatPersonal(item)"
                                class="openUserBox" :attrid="item.userId">
                                {{item.userName}}
                            </td>
                            <td>{{item.forward}}</td>
                            <td>{{item.finishForward}}</td>
                            <td style="color: red;">{{item.noForward}}</td>
                            <td>{{item.contacts?item.contacts:"-"}}</td>
                            <td class="lineOne">
                                <span>{{item.regionName}}</span>
                            </td>
                        </tr>
                        <tr v-if="wechat.time!=today">
                            <td>合计</td>
                            <td>-</td>
                            <td>{{wechat.reportShare.forward}}</td>
                            <td>{{wechat.reportShare.finishForward}}</td>
                            <td>{{wechat.reportShare.noForward}}</td>
                            <td>{{wechat.reportShare.contacts}}</td>
                            <td>-</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="7">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;">-->
            <!--<div>应转发(总)：{{wechat.reportShare.forward}}</div>-->
            <!--<div>已转发(总)：{{wechat.reportShare.finishForward}}</div>-->
            <!--<div>未转发(总)：{{wechat.reportShare.noForward}}</div>-->
            <!--<div>好友数(总)：{{wechat.reportShare.contacts}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--微信转发公司级别模块-->
    <div class="templateStyle" v-if="isHasModule('wechatCompany')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">微信转发</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('wechat','get_wechatCompany',today)"><a href="#sales-chart"
                                                                                               data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('wechat','get_wechatCompany',yesterday)"><a href="#sales-chart"
                                                                                    data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('wechat','get_wechatCompany',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('wechat','get_wechatCompany',thisMonth)"><a href="#sales-chart"
                                                                                    data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('wechat','get_wechatCompany',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;">
            <div style="width: 100%;" class="mScrollBox" id="wechatCompany">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%;">序号</th>-->
                        <th style="width: 10%" class="tableTitle">部门/大区</th>
                        <th style="width: 10%" class="tableTitle">岗位</th>
                        <th style="width: 8%" class="tableTitle">姓名</th>
                        <th style="width: 8%" class="tableTitle">应转发</th>
                        <th style="width: 8%;" class="tableTitle">已转发</th>
                        <th style="width: 8%" class="tableTitle">未转发</th>
                        <th style="width: 8%;" class="tableTitle">好友数</th>
                        <th style="width: 35%" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="wechat.list.length>0">
                        <tr v-for="(item,i) in wechat.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}"
                                style="border-right: 1px solid #cbcbcd;">
                                {{item.departName}}
                            </td>
                            <td>{{item.roleName}}</td>
                            <td style="color:#169BD5;cursor: pointer;" @click="openWechatPersonal(item)">
                                {{item.userName}}
                            </td>
                            <td>{{item.forward}}</td>
                            <td>{{item.finishForward}}</td>
                            <td style="color: red;">{{item.noForward}}</td>
                            <td>{{item.contacts?item.contacts:"-"}}</td>
                            <td class="lineOne">
                                <span>{{item.regionName}}</span>
                            </td>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>-</td>
                            <td>-</td>
                            <td>{{wechat.reportShare.forward}}</td>
                            <td>{{wechat.reportShare.finishForward}}</td>
                            <td>{{wechat.reportShare.noForward}}</td>
                            <td>{{wechat.reportShare.contacts}}</td>
                            <td>-</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="8">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;">-->
            <!--<div>应转发(总)：{{wechat.reportShare.forward}}</div>-->
            <!--<div>已转发(总)：{{wechat.reportShare.finishForward}}</div>-->
            <!--<div>未转发(总)：{{wechat.reportShare.noForward}}</div>-->
            <!--<div>好友数(总)：{{wechat.reportShare.contacts}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--微信转发集团级别模块-->
    <div class="templateStyle" v-if="isHasModule('wechatGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">微信转发</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('wechat','get_wechatGroup',today)"><a href="#sales-chart"
                                                                                             data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('wechat','get_wechatGroup',yesterday)"><a href="#sales-chart" data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('wechat','get_wechatGroup',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('wechat','get_wechatGroup',thisMonth)"><a href="#sales-chart" data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab" @click="refreshData('wechat','get_wechatGroup',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;">
            <div style="width: 100%;" class="mScrollBox" id="wechatGroup">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%;">序号</th>-->
                        <th style="width: 19%" class="tableTitle">公司名称</th>
                        <th style="width: 19%;" class="tableTitle">应转发</th>
                        <th style="width: 19%;" class="tableTitle">已转发</th>
                        <th style="width: 19%;" class="tableTitle">未转发</th>
                        <th style="width: 19%;" class="tableTitle">好友数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="wechat.list.length>0">
                        <tr v-for="(item,i) in wechat.list">
                            <!--<td>{{i+1}}</td>-->
                            <td style="color:#169BD5;cursor: pointer;" @click="openWechatCompany(item)">
                                {{item.companyName}}
                            </td>
                            <td>{{item.forward}}</td>
                            <td>{{item.finishForward}}</td>
                            <td style="color: red;">{{item.noForward}}</td>
                            <td>{{item.contacts?item.contacts:"-"}}</td>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>{{wechat.reportShare.forward}}</td>
                            <td>{{wechat.reportShare.finishForward}}</td>
                            <td>{{wechat.reportShare.noForward}}</td>
                            <td>{{wechat.reportShare.contacts}}</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="5">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 30px;">-->
            <!--<div>应转发(总)：{{wechat.reportShare.forward}}</div>-->
            <!--<div>已转发(总)：{{wechat.reportShare.finishForward}}</div>-->
            <!--<div>未转发(总)：{{wechat.reportShare.noForward}}</div>-->
            <!--<div>好友数(总)：{{wechat.reportShare.contacts}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--客户-区域经理模块-->
    <div class="templateStyle" v-if="isHasModule('customersPersonal')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">客户报表</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('customer','get_customersPersonal',today)"><a href="#sales-chart"
                                                                                                     data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('customer','get_customersPersonal',yesterday)"><a href="#sales-chart"
                                                                                          data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('customer','get_customersPersonal',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('customer','get_customersPersonal',thisMonth)"><a href="#sales-chart"
                                                                                          data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('customer','get_customersPersonal',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
            <button type="button" class="btn oaBtn btn-sm pull-right"
                    style="margin-left: 10px;position: absolute;right: 10px;top: 10px;"
                    @click="openCustomerList()">客户列表
            </button>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="customersPersonal">
            <div style="width:100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%">序号</th>-->
                        <th style="width: 8%" class="tableTitle">客户姓名</th>
                        <th style="width: 10%" class="tableTitle">客户电话</th>
                        <th style="width: 8%" class="tableTitle">客户来源</th>
                        <th style="width: 8%" class="tableTitle">意向机型</th>
                        <th style="width: 8%;" class="tableTitle">购买方式</th>
                        <th style="width: 8%;" class="tableTitle">购买时间</th>
                        <th style="width: 45%" class="tableTitle">基本情况</th>

                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="customer.list.length>0">
                        <tr v-for="(item,i) in customer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td @click="goIntent(item.id)" style="color:#169BD5;cursor: pointer;">
                                {{item.name}}
                            </td>
                            <td>{{item.tel}}
                            </td>
                            <td>
                                {{item.source}}
                            </td>
                            <td>
                                {{item.intentionModel&&item.intentionModel!='无'?item.intentionModel:"-"}}
                            </td>
                            <td>
                                {{item.buyType&&item.buyType!='无'?item.buyType:"-"}}
                            </td>
                            <td>
                                {{item.buyDate&&item.buyDate!='无'?item.buyDate:"-"}}
                            </td>

                            <td class="lineOne">
                                <span>{{item.otherCondition}}</span>
                            </td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="7">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--客户-大区经理模块-->
    <div class="templateStyle" v-if="isHasModule('customersDepart')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">客户报表</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('customer','get_customersDepart',today)"><a href="#sales-chart"
                                                                                                   data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('customer','get_customersDepart',yesterday)"><a href="#sales-chart"
                                                                                        data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('customer','get_customersDepart',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('customer','get_customersDepart',thisMonth)"><a href="#sales-chart"
                                                                                        data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('customer','get_customersDepart',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
            <button type="button" class="btn oaBtn btn-sm pull-right"
                    style="margin-left: 10px;position: absolute;right: 10px;top: 10px;"
                    @click="openCustomerList()">客户列表
            </button>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="customersDepart">
            <div style="width:100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%;">序号</th>-->
                        <th style="width: 8%" class="tableTitle">部门/大区</th>
                        <th style="width: 8%;" class="tableTitle">岗位</th>
                        <th style="width: 8%;" class="tableTitle">姓名</th>
                        <th style="width: 8%;" class="tableTitle">新增客户</th>
                        <th style="width: 68%;" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="customer.list.length>0">
                        <tr v-for="(item,i) in customer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}"
                                style="border-right: 1px solid #cbcbcd;">
                                {{item.departName}}
                            </td>
                            <td>{{item.roleName}}</td>
                            <td @click="lookPersonnelDepartList(item)" style="color:#169BD5;cursor: pointer;">
                                {{item.userName}}
                            </td>
                            <template v-if="isCheck(item)&&item.num!=0&&item.num!='-'">
                                <td style="color:#169BD5;cursor: pointer;" @click="openCustomerList(item.userId,'0')">
                                    {{item.num}}
                                </td>
                            </template>
                            <template v-else>
                                <td>{{item.num}}</td>
                            </template>
                            <td class="lineOne">
                                <span>{{item.regionName}}</span>
                            </td>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td></td>
                            <td></td>
                            <td>{{customer.numCount}}</td>
                            <td></td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="5">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--客户-公司级别模块-->
    <div class="templateStyle" v-if="isHasModule('customersCompany')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">客户报表</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('customer','get_customersCompany',today)"><a href="#sales-chart"
                                                                                                    data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('customer','get_customersCompany',yesterday)"><a href="#sales-chart"
                                                                                         data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('customer','get_customersCompany',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('customer','get_customersCompany',thisMonth)"><a href="#sales-chart"
                                                                                         data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('customer','get_customersCompany',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
            <button type="button" class="btn oaBtn btn-sm pull-right"
                    style="margin-left: 10px;position: absolute;right: 10px;top: 10px;"
                    @click="openCustomerList()">客户列表
            </button>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="customersCompany">
            <div style="width:100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width:5%">序号</th>-->
                        <th style="width: 10%" class="tableTitle">部门/大区</th>
                        <th style="width: 10%" class="tableTitle">岗位</th>
                        <th style="width: 8%" class="tableTitle">姓名</th>
                        <th style="width: 8%" class="tableTitle">新增客户</th>
                        <th style="width: 59%" class="tableTitle">区域</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="customer.list.length>0">
                        <tr v-for="(item,i) in customer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}">
                                {{item.departName}}
                            </td>
                            <td :rowspan="item.roleNamespan" :class="{hidden: item.roleNamedis}">{{item.roleName}}</td>
                            <td @click="lookPersonnelDepartList(item)" style="color:#169BD5;cursor: pointer;">
                                {{item.userName}}
                            </td>
                            <td v-if="item.num==''||item.num=='-'">-</td>
                            <td v-else @click="openCustomerList(item.userId,true)"
                                style="color:#169BD5;cursor: pointer;">
                                {{item.num}}
                            </td>
                            <td class="lineOne">
                                <span>{{item.regionName}}</span>
                            </td>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td></td>
                            <td></td>
                            <td>{{customer.numCount}}</td>
                            <td></td>

                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="5">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--客户-集团级别模块-->
    <div class="templateStyle" v-if="isHasModule('customersGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">客户报表</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('customer','get_customersGroup',today)"><a href="#sales-chart"
                                                                                                  data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('customer','get_customersGroup',yesterday)"><a href="#sales-chart"
                                                                                       data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('customer','get_customersGroup',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('customer','get_customersGroup',thisMonth)"><a href="#sales-chart"
                                                                                       data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('customer','get_customersGroup',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
            <button type="button" class="btn oaBtn btn-sm pull-right"
                    style="margin-left: 10px;position: absolute;right: 10px;top: 10px;"
                    @click="openCustomerList()">客户列表
            </button>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="customersGroup">
            <div class="mScrollBox" style="width:100%;">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width:5%;">序号</th>-->
                        <th style="width:57%" class="tableTitle">公司名称</th>
                        <th style="width:19%" class="tableTitle">新增客户</th>
                        <th style="width:19%" class="tableTitle">客户总数</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="customer.list.length>0">
                        <tr v-for="(item,i) in customer.list">
                            <!--<td>{{i+1}}</td>-->
                            <td>{{item.companyName}}</td>
                            <td v-if="item.num==''||item.num=='-'">-</td>
                            <td v-else @click="openCustomersDepart(item.companyId,true)"
                                style="color:#169BD5;cursor: pointer;">{{item.num}}
                            </td>
                            <td v-if="item.allNum==''||item.allNum=='-'">-</td>
                            <td v-else @click="openCustomersListByCompanyId(item.companyId,false)"
                                style="color:#169BD5;cursor: pointer;">{{item.allNum}}
                            </td>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>{{customer.numCount}}</td>
                            <td>{{customer.allNumCount}}</td>
                        </tr>
                    </template>
                    <template v-else>
                        <tr>
                            <td colspan="3">为什么？</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--费用-个人模块-->
    <div class="templateStyle" v-if="isHasModule('costPersonal')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">费用报销</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('cost','get_costPersonal',today)"><a href="#sales-chart"
                                                                                            data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('cost','get_costPersonal',yesterday)"><a href="#sales-chart" data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('cost','get_costPersonal',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('cost','get_costPersonal',thisMonth)"><a href="#sales-chart" data-toggle="tab">本月</a>
                </li>
                <li v-for="(item,i) in tab" @click="refreshData('cost','get_costPersonal',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="costPersonal">
            <div class="mScrollBox" style="width:100%;">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%">序号</th>-->
                        <th style="width: 8%" class="tableTitle">时间</th>
                        <th style="width: 8%" class="tableTitle">费用名称</th>
                        <th style="width: 8%" class="tableTitle">金额(元)</th>
                        <th style="width: 8%" class="tableTitle">是否有发票</th>
                        <th style="width: 8%" class="tableTitle">报销状态</th>
                        <th style="width: 60%" class="tableTitle">说明</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="cost.list.length>0">
                        <tr v-for="(item,i) in cost.list">
                            <!--<td>{{i+1}}</td>-->
                            <template v-if="item.money!=0">
                                <td>{{(item.reportDate).substr(5,10)}}</td>
                                <td @click="gotoCostDetail(item.costId)" v-if="item.auditFlag!=''"
                                    style="text-align:center;color:#169BD5;cursor: pointer">
                                    {{item.costSmallName}}
                                </td>
                                <td v-else>{{item.costSmallName}}</td>
                                <td v-if="item.money=='0'">
                                    -
                                </td>
                                <td v-else="">
                                    {{item.money}}
                                </td>
                                <td>
                                    {{item.invoiceFlag=="1"?"有":"无"}}
                                </td>
                                <td>
                                    {{item.bxState=="1"?"已报销":item.bxState=="-1"?"已作废":"未报销"}}
                                </td>
                                <td class="lineOne">
                                    <span>{{item.remark}}</span>
                                </td>
                            </template>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>-</td>
                            <td>{{cost.all.money?fmoney(cost.all.money):"0"}}</td>
                            <td>-</td>
                            <td>-</td>
                            <td>-</td>
                        </tr>
                    </template>

                    <template v-else>
                        <tr>
                            <td colspan="6">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <!--费用-部门级别模块-->
    <div class="templateStyle" v-if="isHasModule('costDepart')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">费用报销</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <template v-if="frontFlag==1">
                    <li class="active" @click="refreshData('cost','get_costPersonal',today)"><a href="#sales-chart"
                                                                                                data-toggle="tab">今日</a>
                    </li>
                    <li @click="refreshData('cost','get_costPersonal',yesterday)"><a href="#sales-chart"
                                                                                     data-toggle="tab">昨日</a>
                    </li>
                    <!--<li @click="refreshData('cost','get_costDepart',thisWeek)"><a href="#sales-chart"-->
                    <!--data-toggle="tab">本周</a>-->
                    <!--</li>-->
                    <li @click="refreshData('cost','get_costPersonal',thisMonth)"><a href="#sales-chart"
                                                                                     data-toggle="tab">本月</a></li>
                    <li v-for="(item,i) in tab" @click="refreshData('cost','get_costPersonal',item.time)"><a
                            href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </template>
                <template v-else>
                    <li class="active" @click="refreshData('cost','get_costDepart',today)"><a href="#sales-chart"
                                                                                              data-toggle="tab">今日</a>
                    </li>
                    <li @click="refreshData('cost','get_costDepart',yesterday)"><a href="#sales-chart"
                                                                                   data-toggle="tab">昨日</a>
                    </li>
                    <!--<li @click="refreshData('cost','get_costDepart',thisWeek)"><a href="#sales-chart"-->
                    <!--data-toggle="tab">本周</a>-->
                    <!--</li>-->
                    <li @click="refreshData('cost','get_costDepart',thisMonth)"><a href="#sales-chart"
                                                                                   data-toggle="tab">本月</a></li>
                    <li v-for="(item,i) in tab" @click="refreshData('cost','get_costDepart',item.time)"><a
                            href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </template>

            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="costDepart">
            <div class="mScrollBox" style="width:100%;">

                <template v-if="frontFlag==1">
                    <table class="table text-center table-width">
                        <thead>
                        <tr>
                            <!--<th style="width: 5%">序号</th>-->
                            <th style="width: 8%" class="tableTitle">时间</th>
                            <th style="width: 8%" class="tableTitle">姓名</th>
                            <th style="width: 8%" class="tableTitle">费用名称</th>
                            <th style="width: 8%" class="tableTitle">金额(元)</th>
                            <th style="width: 8%" class="tableTitle">是否有发票</th>
                            <th style="width: 8%" class="tableTitle">报销状态</th>
                            <th style="width: 60%" class="tableTitle">说明</th>
                        </tr>
                        </thead>
                        <tbody>
                        <template v-if="cost.list.length>0">
                            <tr v-for="(item,i) in cost.list">
                                <!--<td>{{i+1}}</td>-->
                                <template v-if="item.money!=0">
                                    <td>{{(item.reportDate).substr(5,10)}}</td>
                                    <td>{{item.userName}}</td>
                                    <td @click="gotoCostDetail(item.costId)" v-if="item.auditFlag!=''"
                                        style="text-align:center;color:#169BD5;cursor: pointer">
                                        {{item.costSmallName}}
                                    </td>
                                    <td v-else>{{item.costSmallName}}</td>
                                    <td>
                                        {{item.money}}
                                    </td>
                                    <td>
                                        {{item.invoiceFlag=="1"?"有":"无"}}
                                    </td>
                                    <td>
                                        {{item.bxState=="1"?"已报销":item.bxState=="-1"?"已作废":"未报销"}}
                                    </td>
                                    <td class="lineOne">
                                        <span>{{item.remark}}</span>
                                    </td>
                                </template>
                            </tr>
                            <tr>
                                <td>合计</td>
                                <td>-</td>
                                <td>-</td>
                                <td>{{cost.all.money?fmoney(cost.all.money):"0"}}</td>
                                <td>-</td>
                                <td>-</td>
                                <td>-</td>
                            </tr>
                        </template>
                        <template v-else>
                            <tr>
                                <td colspan="7">暂无数据~</td>
                            </tr>
                        </template>
                        </tbody>
                    </table>
                </template>
                <template v-else>
                    <table class="table text-center table-width">
                        <thead>
                        <tr>
                            <!--<th style="width: 5%">序号</th>-->
                            <th style="width: 8%" class="tableTitle">部门/大区</th>
                            <th style="width: 8%" class="tableTitle">岗位</th>
                            <th style="width: 8%" class="tableTitle">姓名</th>
                            <th style="width: 8%" class="tableTitle">金额</th>
                            <th style="width: 8%" class="tableTitle">已报销</th>
                            <th style="width: 8%;" class="tableTitle">未报销</th>
                            <th style="width: 52%;" class="tableTitle">区域</th>
                        </tr>
                        </thead>
                        <tbody>
                        <template v-if="cost.list.length>0">
                            <tr v-for="(item,i) in cost.list">
                                <!--<td>{{i+1}}</td>-->

                                <td :rowspan="item.departNamespan" :class="{hidden: item.departNamedis}">
                                    {{item.departName}}
                                </td>
                                <td :rowspan="item.roleNamespan" :class="{hidden: item.roleNamedis}">
                                    {{item.roleName}}
                                </td>
                                <td>{{item.userName}}</td>
                                <template v-if="item.money=='0'">
                                    <td>-
                                    </td>
                                </template>
                                <template v-else>
                                    <td @click="openCostPersonal(item,cost.time)"
                                        style="color:#169BD5;cursor: pointer;">
                                        {{item.money}}
                                    </td>
                                </template>
                                <template v-if="item.bxMoney=='0'">
                                    <td>-
                                    </td>
                                </template>
                                <template v-else>
                                    <td @click="openCostPersonal(item,cost.time,1)"
                                        style="color:#169BD5;cursor: pointer;">
                                        {{item.bxMoney}}
                                    </td>
                                </template>
                                <template v-if="item.unBxMoney=='0'">
                                    <td>-
                                    </td>
                                </template>
                                <template v-else>
                                    <td @click="openCostPersonal(item,cost.time,0)"
                                        style="color:#169BD5;cursor: pointer;">
                                        {{item.unBxMoney}}
                                    </td>
                                </template>
                                <td class="lineOne">
                                    <span>{{item.regionName}}</span>
                                </td>
                            </tr>
                            <tr>
                                <td>合计</td>
                                <td>-</td>
                                <td>-</td>
                                <td>{{cost.all.money?fmoney(cost.all.money):"0"}}</td>
                                <td>{{cost.all.bxMoney?fmoney(cost.all.bxMoney):"0"}}</td>
                                <td>{{cost.all.unBxMoney?fmoney(cost.all.unBxMoney):"0"}}</td>
                                <td>-</td>
                            </tr>
                        </template>
                        <template v-else>
                            <tr>
                                <td colspan="7">暂无数据~</td>
                            </tr>
                        </template>
                        </tbody>
                    </table>
                </template>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 50px;">-->
            <!--<div>金&nbsp;&nbsp;&nbsp;额(总)：{{cost.all.money?fmoney(cost.all.money):"0"}}</div>-->
            <!--<div>已报销(总)：{{cost.all.bxMoney?fmoney(cost.all.bxMoney):"0"}}</div>-->
            <!--<div>未报销(总)：{{cost.all.unBxMoney?fmoney(cost.all.unBxMoney):"0"}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--费用-公司级别模块-->
    <div class="templateStyle" v-if="isHasModule('costCompany')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">费用报销</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('cost','get_costCompany',today)"><a href="#sales-chart"
                                                                                           data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('cost','get_costCompany',yesterday)"><a href="#sales-chart"
                                                                                data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('cost','get_costCompany',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('cost','get_costCompany',thisMonth)"><a href="#sales-chart"
                                                                                data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('cost','get_costCompany',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="costCompany">
            <div class="mScrollBox" style="width: 100%;">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%">序号</th>-->
                        <th style="width: 26%" class="tableTitle">部门</th>
                        <th style="width: 23%;" class="tableTitle">金额</th>
                        <th style="width: 23%;" class="tableTitle">已报销</th>
                        <th style="width: 23%;" class="tableTitle">未报销</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="cost.list.length>0">
                        <tr v-for="(item,i) in cost.list">
                            <!--<td>{{i+1}}</td>-->
                            <template v-if="item.money!=0">
                                <td :rowspan="item.departBigNamespan" :class="{hidden: item.departBigNamedis}">
                                    {{item.departName}}
                                </td>
                                <template v-if="item.money=='0'">
                                    <td>-
                                    </td>
                                </template>
                                <template v-else>
                                    <td @click="openCostDepart(item,cost.time)" style="color:#169BD5;cursor: pointer;">
                                        {{item.money}}
                                    </td>
                                </template>
                                <td>
                                    {{item.bxMoney}}
                                </td>

                                <td>
                                    {{item.unBxMoney}}
                                </td>
                            </template>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>{{cost.all.money?fmoney(cost.all.money):"0"}}</td>
                            <td>{{cost.all.bxMoney?fmoney(cost.all.bxMoney):"0"}}</td>
                            <td>{{cost.all.unBxMoney?fmoney(cost.all.unBxMoney):"0"}}</td>
                        </tr>
                    </template>

                    <template v-else>
                        <tr>
                            <td colspan="4">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 50px;">-->
            <!--<div>金&nbsp;&nbsp;&nbsp;额(总)：{{cost.all.money?fmoney(cost.all.money):"0"}}</div>-->
            <!--<div>已报销(总)：{{cost.all.bxMoney?fmoney(cost.all.bxMoney):"0"}}</div>-->
            <!--<div>未报销(总)：{{cost.all.unBxMoney?fmoney(cost.all.unBxMoney):"0"}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--费用-集团级别模块-->
    <div class="templateStyle" v-if="isHasModule('costGroup')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">费用报销</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('cost','get_costGroup',today)"><a href="#sales-chart"
                                                                                         data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('cost','get_costGroup',yesterday)"><a href="#sales-chart"
                                                                              data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('cost','get_costGroup',thisWeek)"><a href="#sales-chart"-->
                <!--data-toggle="tab">本周</a>-->
                <!--</li>-->
                <li @click="refreshData('cost','get_costGroup',thisMonth)"><a href="#sales-chart"
                                                                              data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('cost','get_costGroup',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="costGroup">
            <div class="mScrollBox" style="width:100%;">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!--<th style="width: 5%">序号</th>-->
                        <th style="width: 35%" class="tableTitle">公司名称</th>
                        <th style="width: 20%" class="tableTitle">金额</th>
                        <th style="width: 20%" class="tableTitle">已报销</th>
                        <th style="width: 20%" class="tableTitle">未报销</th>
                    </tr>
                    </thead>
                    <tbody>
                    <template v-if="cost.list.length>0">
                        <tr v-for="(item,i) in cost.list">
                            <!--<td>{{i+1}}</td>-->
                            <template v-if="item.money!=0">
                                <td :rowspan="item.companyNamespan" :class="{hidden: item.companyNamedis}">
                                    {{item.companyName}}
                                </td>
                                <template v-if="item.money=='0'">
                                    <td>-
                                    </td>
                                </template>
                                <template v-else>
                                    <td @click="openCostCompany(item,cost.time)" style="color:#169BD5;cursor: pointer;">
                                        {{item.money}}
                                    </td>
                                </template>
                                <td>
                                    {{item.bxMoney}}
                                </td>

                                <td>
                                    {{item.unBxMoney}}
                                </td>
                            </template>
                        </tr>
                        <tr>
                            <td>合计</td>
                            <td>{{cost.all.money?fmoney(cost.all.money):"0"}}</td>
                            <td>{{cost.all.bxMoney?fmoney(cost.all.bxMoney):"0"}}</td>
                            <td>{{cost.all.unBxMoney?fmoney(cost.all.unBxMoney):"0"}}</td>
                        </tr>
                    </template>

                    <template v-else>
                        <tr>
                            <td colspan="4">暂无数据~</td>
                        </tr>
                    </template>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--<div style="width: 20%;float:right;">-->
            <!--<div class="infoReport" style="margin-top: 50px;">-->
            <!--<div>金&nbsp;&nbsp;&nbsp;额(总)：{{cost.all.money?fmoney(cost.all.money):"0"}}</div>-->
            <!--<div>已报销(总)：{{cost.all.bxMoney?fmoney(cost.all.bxMoney):"0"}}</div>-->
            <!--<div>未报销(总)：{{cost.all.unBxMoney?fmoney(cost.all.unBxMoney):"0"}}</div>-->
            <!--</div>-->
            <!--</div>-->
        </div>
    </div>
    <!--拜访客户-区域经理首末拜访-->
    <div class="templateStyle" v-if="isHasModule('stratAndEndFaceVisit')">
        <div class="nav-tabs-custom oaReportNav">
            <!-- Tabs within a box -->
            <div class="moduleName">拜访客户</div>
            <ul class="nav nav-tabs pull-right" style="margin-bottom: 10px;" v-cloak>
                <li class="active" @click="refreshData('visitCustomer','get_stratAndEndFaceVisit',today)"><a
                        href="#sales-chart" data-toggle="tab">今日</a>
                </li>
                <li @click="refreshData('visitCustomer','get_stratAndEndFaceVisit',yesterday)"><a href="#sales-chart"
                                                                                                  data-toggle="tab">昨日</a>
                </li>
                <!--<li @click="refreshData('visitCustomer','get_stratAndEndFaceVisit',thisWeek)"><a href="#sales-chart"
                                                                                          data-toggle="tab">本周</a></li>
                <li @click="refreshData('visitCustomer','get_stratAndEndFaceVisit',thisMonth)"><a href="#sales-chart"
                                                                                           data-toggle="tab">本月</a></li>
                <li v-for="(item,i) in tab" @click="refreshData('visitCustomer','get_visitPersonal',item.time)"><a
                        href="#sales-chart" data-toggle="tab">{{i==0?"上月":item.str}}</a>
                </li>-->
            </ul>
        </div>
        <div style="padding: 0 10px;background: #fff;" id="stratAndEndFaceVisit">
            <div style="width: 100%;" class="mScrollBox">
                <table class="table text-center table-width">
                    <thead>
                    <tr>
                        <!-- <th style="width: 48px;">序号</th>-->
                        <th style="width: 5%;text-align: center" class="tableTitle">公司</th>
                        <th style="width: 5%;text-align: center" class="tableTitle">部门</th>
                        <th style="width: 5%;text-align: center" class="tableTitle">区域经理</th>
                        <th style="width: 5%;text-align: center" class="tableTitle">大区经理</th>
                        <th style="width: 6%;text-align: center" class="tableTitle">考勤签到时间</th>
                        <th style="width: 6%;text-align: center" class="tableTitle">首次面访<br>签到时间</th>
                        <th style="width: 9%;text-align: center" class="tableTitle">考勤签到时间与首次<br>面访签到时间间隔</th>
                        <th style="width: 10%;text-align: center" class="tableTitle">考勤签到地点与首次<br>面访签到地点距离间隔</th>
                        <th style="width: 6%;text-align: center" class="tableTitle">考勤签退时间</th>
                        <th style="width: 6%;text-align: center" class="tableTitle">末次面访<br>签退时间</th>
                        <th style="width: 9%;text-align: center" class="tableTitle">考勤签退时间与末次<br>面访签退时间间隔</th>
                        <th style="width: 10%;text-align: center" class="tableTitle">考勤签退地点与末次<br>面访签退地点距离间隔</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr v-for="(item,i) in visitCustomer.faceList">
                        <!--<td>{{i+1}}</td>-->
                        <td>{{item.companyName}}</td>
                        <td>{{item.departName}}</td>
                        <td>{{item.userName}}</td>
                        <td>{{item.parentUserName}}</td>
                        <td>{{item.signTime}}</td>
                        <td>{{item.arrivalsTime}}</td>
                        <td>{{item.signTimeInterval}}</td>
                        <td>{{item.signDistance}}</td>
                        <td>{{item.signOutTime}}</td>
                        <td v-if="item.signOutTime">{{item.leaveTime}}</td>
                        <td v-else></td>
                        <td>{{item.signOutTimeInterval}}</td>
                        <td>{{item.signOutDistance}}</td>
                        <!--<td v-if="userId==item.userId&&item.complete!='-'" style="color:#169BD5;cursor: pointer"
                            @click="lookInterview(item,'1')">
                            {{item.complete}}
                        </td>
                        <td v-else-if="item.complete!='-'">{{item.complete}}</td>
                        <td v-else>-</td>-->
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</section>
</body>
<!--JQ-->
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--<script src="/dist/plugins/scroll/myScroll.js"></script>-->
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=602456c3"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=6348cbbc"></script>

<script type="text/javascript" src="/dist/plugins/lhgdialog/lhgdialog.min.js?self=true"></script>
<script>
    $(function () {
        $("body").on("click", ".lineOne", function (e) {
            if ($(".div-td-content-more").is(":hidden")) {
                var text = $(this).text();
                if (text != "") {
                    text = "<i></i>" + text;
                    $(".div-td-content-more").html(text).css({
                        "width": $(this).outerWidth() + "px",
                        "left": $(this).offset().left,
                        "top": ($(this).offset().top + $(this).outerHeight()) + "px"
                    }).show();
                    e.stopPropagation();
                }
            } else {
                $(".div-td-content-more").hide();
            }
        });
        $("body").on("click", ".div-td-content-more", function (e) {
            e.stopPropagation();
        });
        $("body").on("click", function () {
            $(".div-td-content-more").hide();
        });
    });
</script>
<script>
    $.extend($.wyui, {
        postMethod: function (url, data, callback, sync, id) {
            if (!id) {
                id = "#app"
            }
            $.ajax({
                url: server.ip + url,
                async: sync ? false : true,
                data: JSON.stringify(data),
                beforeSend: function () {
                    App.blockUI({
                        target: id,
                        boxed: true,
                        message: '加载中......'//,
                        // animate: true
                    });
                },
                complete: function () {
                    setTimeout(function () {
                        App.unblockUI(id);
                    }, 1000);

                },
                success: function (r) {
                    if (!r.e.code) {
                        callback(r.data.sendData);
                    } else {
                        alert(r.e.desc);
                    }
                },
                error: function (e) {
                    console.log(url + e.responseText);
                    App.unblockUI('#app');
                }
            });
        },
    });
</script>
<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            a: 1,
            userId: getCurrentUser().id,
            companyId: getCurrentUser().companyId,
            frontFlag: getCurrentUser().frontFlag,
            departId: getCurrentUser().departId,
            modules: [],//该人员拥有的模块列表,
            reginIds: [],//该人员拥有的区域列表ID
            regionNames: [],//该人员拥有的区域列表名称
            yesterday: new Date(new Date() - 24 * 60 * 60 * 1000).Format("yyyy-MM-dd"),
            today: new Date().Format("yyyy-MM-dd"),//今天
            hour: new Date().getHours(),
            thisMonth: new Date().Format("yyyy-MM"),
            thisWeek: new Date().Format("yyyy-MM-dd") + "-w",
            tab: [],
            sign: {
                time: new Date().Format("yyyy-MM-dd"),
                list: [],
                info: {}
            },
            wechat: {
                time: new Date().Format("yyyy-MM-dd"),
                list: [],
                reportShare: {Forward: 0, FinishForward: 0, NoForward: 0}
            },
            visitCustomer: {
                time: new Date().Format("yyyy-MM-dd"),
                faceList: [],
                JtfaceList: [],
                telList: [],
                JttelList: [],
                bigcalculation: [{
                    "targetDayCount": 0,
                    "finishDayCount": 0,
                    "regionNumber": 0,
                    "daily": 0,
                    "completionRate": 0
                }, {
                    "targetDayCount": 0,
                    "finishDayCount": 0,
                    "regionNumber": 0,
                    "daily": 0,
                    "completionRate": 0,
                    'leaveNumber': 0
                }],
                Jtbigcalculation: [{
                    "targetDayCount": 0,
                    "finishDayCount": 0,
                    "regionNumber": 0,
                    "daily": 0,
                    "completionRate": 0
                }, {
                    "targetDayCount": 0,
                    "finishDayCount": 0,
                    "regionNumber": 0,
                    "daily": 0,
                    "completionRate": 0,
                    'leaveNumber': 0
                }]
            },
            bigVisitCustomer: {
                time: new Date().Format("yyyy-MM-dd"),
                faceList: [],
                telList: [],
                bigcalculation: [{
                    "targetDayCount": 0,
                    "finishDayCount": 0,
                    "regionNumber": 0,
                    "daily": 0,
                    "completionRate": 0
                }, {
                    "targetDayCount": 0,
                    "finishDayCount": 0,
                    "regionNumber": 0,
                    "daily": 0,
                    "completionRate": 0,
                    'leaveNumber': 0
                }]
            },
            daQuVisitGroup: {
                time: new Date().Format("yyyy-MM-dd"),
                list: [],
                allCount: {"bigRegionManagerNum": "", "customerCount": "", "managerCount": ""}
            },
            daQuVisitCompany: {
                time: new Date().Format("yyyy-MM-dd"),
                faceList: [],
                telList: [],
                allDate: [
                    {"planCount": "", "finishCount": "", "signInNum": "", "errorNum": ""},
                    {"planCount": "", "finishCount": ""}
                ],
            },
            visitClientCustomer: {
                time: new Date().Format("yyyy-MM-dd"),
                list: [],
                allCount: {"managerCount": "", "visitCount": "", "managerTargetNum": "", "regionManagerNum": ""}
            },
            customer: {
                time: new Date().Format("yyyy-MM-dd"),
                list: [],
                numCount: '',
                allNumCount: '',
            },
            cost: {
                time: new Date().Format("yyyy-MM-dd"),
                list: [],
                all: {"money": "", "bxMoney": "", "unBxMoney": ""}
            },
            intentionalCustomer: {
                time: new Date().Format("yyyy-MM-dd"),
                list: [],
                weekNumCount: '',
                monthNumCount: '',
                threeNumCount: '',
                banNianNumCount: '',
                allNumCount: ''
            },
            personnel: {
                time: new Date().Format("yyyy-MM-dd"),
                list: [],
                all: {}
            }

        },
        methods: {
            changeBuyDate: function (buyDate) {
                var a = '';
                switch (buyDate) {
                    case 'todayMonth':
                        a = '本月内'
                        break
                    case 'nextMonth':
                        a = '下月内'
                        break
                    case 'threeMonth':
                        a = '三月内'
                        break
                    case 'halfYear':
                        a = '半年内'
                        break
                }
                return a;
            },
            isFair: function (item) {
                var str = '';
                if (!this.distanceJq(item.signInDistance) && !this.timeJq(item.signInTimeDiff)) {
                    str = "距离、时间不合理"
                } else if (!this.distanceJq(item.signInDistance)) {
                    str = "距离不合理"
                } else if (!this.timeJq(item.signInTimeDiff)) {
                    str = "时间不合理"
                }
                return str
            },
            //距离合理->true 不合理->false
            distanceJq: function (d) {
                if (d) {
                    var str = d.replace("公里", "");
                    return Number(str) < 15
                }
            },
            //时间合理->true 不合理->false
            timeJq: function (t) {
                if (t) {
                    if (t.indexOf("小时") > 0) {
                        var hour = t.split("小时")[0];
                        if (Number(hour) > 0) {
                            return false;
                        }
                    } else {
                        if (t.indexOf("分") > 0) {
                            var min = t.split("分")[0];
                            if (Number(min) > 30) {
                                return false;
                            }
                        } else {
                            return true;
                        }
                    }
                }
                return true;
            },
            //距离间隔
            dJq: function (d) {
                if (d) {
                    var str = d.replace("公里", "");
                    console.log("距离间隔 = " + str)
                    if (str == '0') {
                        return '';
                    } else {
                        return Number(str).toFixed(2);
                    }
                }

            },
            //速度
            disJq: function (dis) {
                if (dis) {
                    var str = dis.replace("km/h", "");
                    return str;
                }
            },
            //去秒加0几分
            quMiao: function (m) {
                if (!m) return ""
                //1小时11分11秒
                var hour = "0"
                var min = "0"
                var sec = "0"

                if (m.indexOf("小时") > 0) {
                    //{1  , 11分11秒} 1小时55秒
                    hour = m.split("小时")[0]
                }
                if (m.indexOf("分") > 0) {
                    //{1小时11，11秒}
                    min = m.split("分")[0]
                    if (min.indexOf("小时") > 0) {
                        //{1,11}
                        min = min.split("小时")[1]
                    }
                    if (Number(min) < 10) {
                        min = "0" + min
                    }
                }
                if (min == "0" && m.indexOf("秒") > 0) {
                    //21秒
                    return hour + "小时01分"
                }
                return hour + "小时" + min + "分"
            },
            //添加0小时xx分
            addZeroHour: function (h) {
                if (!h) {
                    return ""
                }
                if (h.indexOf('小时') > 0) {
                    return h
                } else {
                    return "0小时" + h
                }
            },
            openImg1: function (url) {
                top.$.dialog({
                    title: '图片详情',
                    content: 'url:/page/showImg.html?url=' + url,
                    height: 500,
                    max: true,
                    min: false,
                    lock: true
                }).max();
            },
            isGo: function (item) {
                return true;
                if (getCurrentUser().companyName == "滚滚向前" || getCurrentUser().roleName == '销售管理经理' || getCurrentUser().id == item.managerId || getCurrentUser().roleName == '总经理' || getCurrentUser().roleName == '销售总监') {
                    return true;
                } else {
                    return false;
                }
            },
            //打开大区公司页面
            openDaQuVisitClientCustomerCompany: function (item) {
                var that = this;
                console.log(that.visitClientCustomer.time);
                top.closeTabByPageId("bbvt-company");
                url = "reportForm/interview/daQuInterviewCompany.html?companyId=" + item.companyId + "&dateTime=" + that.visitClientCustomer.time;
                top.addTabs({id: "dqbf-company", title: item.companyName, close: true, url: url});
            },
            //打开陪跑公司页面
            openVisitClientCustomerCompany: function (item) {
                var that = this;
                console.log(that.visitClientCustomer.time);
                top.closeTabByPageId("bbvt-company");
                url = "reportForm/interview/visitClientCompany.html?companyId=" + item.companyId + "&dateTime=" + that.visitClientCustomer.time;
                top.addTabs({id: "bbvt-company", title: "陪同拜访报表", close: true, url: url});
            },
            //  查看下属
            lookRegionList: function (item) {
                var that = this;
                top.closeTabByPageId("pp-company");
                url = "reportForm/interview/accompanyInterviewList.html?userId=" + item.userId + "&dateTime=" + that.visitClientCustomer.time + "&entourage=" + item.entourageName;
                top.addTabs({id: "pp-company", title: "陪跑列表", close: true, url: url});

//                url = "/page/reportForm/interview/accompanyInterviewList.html?userId=" + item.userId + "&dateTime=" + that.visitClientCustomer.time + "&entourage=" + item.entourageName;
//                $.dialog({
//                    content: 'url:' + url,
//                    title: '陪跑列表',
//                    width: 600,
//                    height: 500,
//                    max: false,
//                    min: false,
//                    lock: true
//                });
            },
            fmoney: function (s, n) {
                n = n > 0 && n <= 20 ? n : 2;
                s = parseFloat((s + "").replace(/[^\d\.-]/g, "")).toFixed(n) + "";
                var l = s.split(".")[0].split("").reverse(), r = s.split(".")[1],
                    t = "";
                for (i = 0; i < l.length; i++) {
                    t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : "");
                }
                return t.split("").reverse().join("") + "." + r;
            },
            isHasModule: function (moduleEName) {
                return $.inArray(moduleEName, this.modules) > -1;
            },
            getLastEndMonth: function (beginYearMonth) {
                var strYear = parseInt(beginYearMonth.substr(0, 4), 10);
                var strMonth = parseInt(beginYearMonth.substr(4, 6), 10);
                if (strMonth - 1 == 0) {
                    strYear -= 1;
                    strMonth = 12;
                } else {
                    strMonth -= 1;
                }
                if (strMonth < 10) {
                    strMonth = "0" + strMonth;
                }
                var monthstr = strYear + "" + strMonth;
                return monthstr;
            },
            //获取modules
            getModules: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.config.module.getModuleENamesByUserId, {userId: getCurrentUser().id}, function (data) {
                    var eNames = [];
                    for (var i = 0; i < data.length; i++) {
                        if (data[i].appTodayReport == '0') {
                            eNames.push(data[i].eName);
                        }
                    }
                    that.modules = eNames;
                    console.log(that.modules)
                }, true);
            },
            //获取tab
            getTab: function () {
                var that = this;
                var dateTime = new Date().Format("yyyyMM");

                for (var i = 0; i < 5; i++) {
                    dateTime = that.getLastEndMonth(dateTime);
                    that.tab.push(that.insert_flg(dateTime, "-", "4"))
                }
                console.log(that.tab)
            },
            //获取合计
            getCount: function (arr, key) {
                var number = 0;
                for (var i = arr.length - 1; i >= 0; i--) {
                    number += (arr[i][key] && arr[i][key] != '-' ? Number(arr[i][key]) : 0)

                }
                return number;
            },
            //tab中点击日期刷新对应数据
            refreshData: function (dataType, fun, time) {
                var that = this;
                that[dataType].time = time;
                that[fun]();
            },
            //打开客户列表
            openCustomerList: function (userId, type) {
                var that = this;
                var time = '';
                var isAll = true;
                if (type) {
                    time = that.customer.time;
                    isAll = false;
                }
                if (!userId) {
                    userId = this.userId
                }
                var that = this;
                top.closeTabByPageId("khList2");
                top.addTabs({
                    id: 'khList2',
                    title: '客户列表',
                    close: true,
                    url: 'customer/customerList.html?userId=' + userId + '&time=' + time + '&isAll=' + isAll
                });
            },
            //打开部门客户列表
            openCustomersDepart: function (companyId, type) {
                var that = this;
                var time = '';
                var isAll = true;
                if (type) {
                    time = that.customer.time;
                    isAll = false;
                }
                if (!companyId) {
                    companyId = this.companyId
                }
                var that = this;
                top.closeTabByPageId("khList2");
                top.addTabs({
                    id: 'khList2',
                    title: '客户报表',
                    close: true,
                    url: 'customer/customerDepart.html?companyId=' + companyId + '&dateTime=' + time + '&isAll=' + isAll
                });
            },
            /*根据公司ID获得客户列表*/
            openCustomersListByCompanyId: function (companyId, type) {
                var that = this;
                var time = '';
                var isAll = true;
                if (type) {
                    time = that.customer.time;
                    isAll = false;
                }
                if (!companyId) {
                    companyId = this.companyId
                }
                var that = this;
                top.closeTabByPageId("khList2");
                top.addTabs({
                    id: 'khList2',
                    title: '客户列表',
                    close: true,
                    url: 'customer/customerList.html?companyId=' + companyId + '&dateTime=' + time + '&isAll=' + "isAllByCompanyId"
                });

            },

            //打开意向客户列表
            openIntentionalCustomerList: function (userId, type, key) {
                var that = this;
                var isAll = true;
                if (type) {
                    isAll = false;
                }
                if (!userId) {
                    userId = this.userId
                }
                if (!key) {
                    key = "";
                }
                top.closeTabByPageId("openIntentionalCustomerList");
                top.addTabs({
                    id: 'openIntentionalCustomerList',
                    title: '意向客户列表',
                    close: true,
                    url: 'customer/intentionalCustomerList.html?userId=' + userId + '&isAll=' + isAll + '&key=' + key
                });
            },
            //打开意向客户列表
            openIntentionalCustomerListByRegionId: function (regionId, userId, type, key) {
                var that = this;
                var isAll = true;
                if (type) {
                    isAll = false;
                }
                if (!userId) {
                    userId = this.userId
                }
                if (!key) {
                    key = "";
                }
                top.closeTabByPageId("openIntentionalCustomerList");
                top.addTabs({
                    id: 'openIntentionalCustomerList',
                    title: '意向客户列表',
                    close: true,
                    url: 'customer/intentionalCustomerList.html?userId=' + userId + '&regionId=' + regionId + '&isAll=' + isAll + '&key=' + key
                });
            },
            //打开公司意向客户列表
            openIntentionalCustomersDepart: function (companyId, type) {
                var that = this;
                if (!companyId) {
                    companyId = this.companyId
                }
                var that = this;
                top.closeTabByPageId("openIntentionalCustomersDepart");
                top.addTabs({
                    id: 'openIntentionalCustomersDepart',
                    title: '意向客户报表',
                    close: true,
                    url: 'customer/intentionalCustomerDepart.html?companyId=' + companyId
                });
            },
            //查看签到、签退相片
            openImg: function (url) {
                top.$.dialog({
                    title: '图片详情',
                    content: 'url:/page/showImg.html?url=' + url,
                    height: 500,
                    max: true,
                    min: false,
                    lock: true
                }).max();
            },
            //格式化日期
            insert_flg: function (str, flg, sn, type) {
                var newstr = "";
                for (var i = 0; i < str.length; i += sn) {
                    var tmp = str.substring(i, i + sn);
                    newstr += tmp + flg;
                }
                newstr = newstr.substr(0, newstr.length - 1);
                var st1 = newstr.substr(2, 2);
                var st2 = newstr.substr(5, 2);
                var newstr3 = st2 + "/" + st1;
                var obj = {str: newstr, time: newstr};
                return obj;
            },
            //合并单元格
            tablesMergeCell: function (list) {
                for (field in list[0]) {
                    var k = 0;
                    while (k < list.length) {
                        list[k][field + 'span'] = 1;
                        list[k][field + 'dis'] = false;
                        for (var i = k + 1; i <= list.length - 1; i++) {
                            if (list[k][field] == list[i][field] && list[k][field] != '') {
                                list[k][field + 'span']++;
                                list[k][field + 'dis'] = false;
                                list[i][field + 'span'] = 1;
                                list[i][field + 'dis'] = true;
                            } else {
                                break;
                            }
                        }
                        k = i;
                    }
                }
                return list;
            },
            //获取签到报表-区域经理
            get_signInPersonal: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.attendance.getForPersonalByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.sign.time
                }, function (data) {
                    that.sign.list = data;
                    console.log(that.sign.list);
                }, false, "#signInPersonal");
            },
            //获取签到报表-大区经理
            get_signInDepart: function () {
                var that = this;
//                $.wyui.postMethod(urlConfig.report.attendance.getSignInByRegionUserId, {
//                    "userId": that.userId,
//                    "dateTime": that.sign.time,
//                    "frontFlag": that.frontFlag
//                }, function (data) {
//                    that.sign.info.todayCount = data.todayCount;
//                    that.sign.info.shouldCount = data.shouldCount;
//                    that.sign.info.signInCount = data.signInCount;
//                    that.sign.info.leaveCount = data.leaveCount;
//                    that.sign.info.absenceCount = data.absenceCount;
//                }, true, "#signInDepart");
                $.wyui.postMethod(urlConfig.report.attendance.getForDepartByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.sign.time,
                    "frontFlag": that.frontFlag
                }, function (data) {
                    console.log(data);
                    that.sign.list = that.tablesMergeCell(data);
                    that.sign.info.shouldCount = that.getCount(that.sign.list, "shouldCount");
                    that.sign.info.signInCount = that.getCount(that.sign.list, "signInCount");
                    that.sign.info.leaveCount = that.getCount(that.sign.list, "leaveCount");
                    that.sign.info.absenceCount = that.getCount(that.sign.list, "absenceCount");
                }, true, "#signInDepart");
            },
            //查拜访公司下级页面
            lookInterviewDepartForButton: function () {
                var that = this;
                url = "reportForm/interview/interviewDepart.html";
                top.closeTabByPageId("lookInterviewDepart");
                top.addTabs({
                    id: "lookInterviewDepart",
                    title: '今日首次面访报表',
                    close: true,
                    url: url + '?companyId=' + that.companyId + "&dateTime=" + that.visitCustomer.time
                });
            },
            //获取签到报表-公司
            get_signInCompany: function () {
                var that = this;
//                $.wyui.postMethod(urlConfig.report.attendance.getSignInByUserId, {
//                    "userId": that.userId,
//                    "dateTime": that.sign.time,
//                    "frontFlag":that.frontFlag
//                }, function (data) {
//                    that.sign.info.todayCount=data.todayCount;
//                    that.sign.info.shouldCount = data.shouldCount;
//                    that.sign.info.signInCount = data.signInCount;
//                    that.sign.info.leaveCount = data.leaveCount;
//                    that.sign.info.absenceCount = data.absenceCount;
//                }, true,"#signInCompany");

                $.wyui.postMethod(urlConfig.report.attendance.getForCompanyByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.sign.time
                }, function (data) {
                    console.log(data);
                    that.sign.list = that.tablesMergeCell(data);
                    that.sign.info.shouldCount = that.getCount(that.sign.list, "shouldCount");
                    that.sign.info.signInCount = that.getCount(that.sign.list, "signInCount");
                    that.sign.info.leaveCount = that.getCount(that.sign.list, "leaveCount");
                    that.sign.info.absenceCount = that.getCount(that.sign.list, "absenceCount");
                }, true, "#signInCompany");
            },
            //获取签到报表-集团
            get_signInGroup: function () {
                var that = this;
//                $.wyui.postMethod(urlConfig.report.attendance.getSignInByUserId, {
//                    "userId": that.userId,
//                    "dateTime": that.sign.time,
//                    "frontFlag":that.frontFlag
//                }, function (data) {
//                    that.sign.info.todayCount=data.todayCount;
//                    that.sign.info.shouldCount = data.shouldCount;
//                    that.sign.info.signInCount = data.signInCount;
//                    that.sign.info.leaveCount = data.leaveCount;
//                    that.sign.info.absenceCount = data.absenceCount;
//                }, true,"#signInGroup");
                $.wyui.postMethod(urlConfig.report.attendance.getForGroupByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.sign.time
                }, function (data) {
                    console.log(data);
                    that.sign.list = that.tablesMergeCell(data);
                    that.sign.info.todayCount = that.getCount(that.sign.list, "shouldSignInCount");
                    that.sign.info.signInCount = that.getCount(that.sign.list, "signInFullCount");
                    that.sign.info.leaveCount = that.getCount(that.sign.list, "leaveFullCount");
                    that.sign.info.absenceCount = that.getCount(that.sign.list, "absenceFullCount");
                }, true, "#signInGroup");
            },
            //获取微信报表
            get_wechatPersonal: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.wechatShareRegion.getForPersonalByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.wechat.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.wechat.list = data;
                }, false, "#wechatPersonal");
                $.wyui.postMethod(urlConfig.report.wechatShareRegion.getWechatTotal, {
                    "userId": that.userId,
                    "dateTime": that.wechat.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.wechat.reportShare = data;
                });
            },
            get_wechatDepart: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.wechatShareRegion.getForDepartByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.wechat.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.wechat.list = that.tablesMergeCell(data);
                }, false, "#wechatPersonal");
                $.wyui.postMethod(urlConfig.report.wechatShareRegion.getWechatTotalforDepartByuserId, {
                    "userId": that.userId,
                    "dateTime": that.wechat.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.wechat.reportShare = data;
                });
            },
            get_wechatCompany: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.wechatShareRegion.getForCompanyByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.wechat.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.wechat.list = that.tablesMergeCell(data);
                }, false, "#wechatCompany");
                $.wyui.postMethod(urlConfig.report.wechatShareRegion.getWechatTotalforCompany, {
                    "userId": that.userId,
                    "dateTime": that.wechat.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.wechat.reportShare = data;
                });
            },
            get_wechatGroup: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.wechatShareRegion.getForGroupByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.wechat.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.wechat.list = that.tablesMergeCell(data);
                }, false, "#wechatGroup");
                $.wyui.postMethod(urlConfig.report.wechatShareRegion.getWechatTotalforGroup, {
                    "userId": that.userId,
                    "dateTime": that.wechat.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.wechat.reportShare = data;
                });
            },
            //获取拜访报表-区域经理
            get_visitPersonal: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getForPersonal, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time,
                    "type": "1"
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.faceList = data;
                }, false, "#visitPersonal");
                $.wyui.postMethod(urlConfig.report.visitCustomer.getForPersonal, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time,
                    "type": "0"
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.telList = data;
                }, false, "#visitPersonal");
            },
            //获取拜访报表-大区经理
            get_visitDepart: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getForDepart, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time,
                    "type": "1"
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.faceList = data;
                    //获取合计
                    that.visitCustomer.bigcalculation[1].targetDayCount = that.getCount(that.visitCustomer.faceList, "target");
                    that.visitCustomer.bigcalculation[1].finishDayCount = that.getCount(that.visitCustomer.faceList, "complete");
                    that.visitCustomer.bigcalculation[1].managerTargetNum = that.getCount(that.visitCustomer.faceList, "managerTargetNum");
                    that.visitCustomer.bigcalculation[1].regionManagerNum = that.getCount(that.visitCustomer.faceList, "regionManagerNum");
                    that.visitCustomer.bigcalculation[1].leaveNumber = that.getCount(that.visitCustomer.faceList, "leaveNumber");
                    that.visitCustomer.bigcalculation[1].daily = (that.visitCustomer.bigcalculation[1].finishDayCount / that.visitCustomer.bigcalculation[1].regionManagerNum).toFixed(2);
                    if (that.visitCustomer.bigcalculation[1].targetDayCount == 0) {
                        that.visitCustomer.bigcalculation[1].completionRate = "0.00%";
                    } else {
                        that.visitCustomer.bigcalculation[1].completionRate = (that.visitCustomer.bigcalculation[1].finishDayCount / that.visitCustomer.bigcalculation[1].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#visitDepart");
                $.wyui.postMethod(urlConfig.report.visitCustomer.getForDepart, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time,
                    "type": "0"
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.telList = data;
                    //获取合计
                    that.visitCustomer.bigcalculation[0].targetDayCount = that.getCount(that.visitCustomer.telList, "target");
                    that.visitCustomer.bigcalculation[0].finishDayCount = that.getCount(that.visitCustomer.telList, "complete");
                    that.visitCustomer.bigcalculation[0].managerTargetNum = that.getCount(that.visitCustomer.telList, "managerTargetNum");
                    that.visitCustomer.bigcalculation[0].regionManagerNum = that.getCount(that.visitCustomer.telList, "regionManagerNum");
                    that.visitCustomer.bigcalculation[0].leaveNumber = that.getCount(that.visitCustomer.telList, "leaveNumber");
                    that.visitCustomer.bigcalculation[0].daily = (that.visitCustomer.bigcalculation[0].finishDayCount / that.visitCustomer.bigcalculation[0].regionManagerNum).toFixed(2);
                    if (that.visitCustomer.bigcalculation[0].targetDayCount == 0) {
                        that.visitCustomer.bigcalculation[0].completionRate = "0.,l00%";
                    } else {
                        that.visitCustomer.bigcalculation[0].completionRate = (that.visitCustomer.bigcalculation[0].finishDayCount / that.visitCustomer.bigcalculation[0].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#visitDepart");

            },
            //获取大客户拜访报表-区域经理
            get_bigVisitPersonal: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.bigVisitCustomer.getForPersonal, {
                    "userId": that.userId,
                    "dateTime": that.bigVisitCustomer.time,
                    "type": "1"
                }, function (data) {
                    var data = trimRN2(data);
                    that.bigVisitCustomer.faceList = data;
                }, false, "#bigVisitPersonal");
                $.wyui.postMethod(urlConfig.report.bigVisitCustomer.getForPersonal, {
                    "userId": that.userId,
                    "dateTime": that.bigVisitCustomer.time,
                    "type": "0"
                }, function (data) {
                    var data = trimRN2(data);
                    that.bigVisitCustomer.telList = data;
                }, false, "#bigVisitPersonal");
            },
            //获取大客户拜访报表-大区经理
            get_bigVisitDepart: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.bigVisitCustomer.getForDepart, {
                    "userId": that.userId,
                    "dateTime": that.bigVisitCustomer.time,
                    "type": "1"
                }, function (data) {
                    var data = trimRN2(data);
                    that.bigVisitCustomer.faceList = data;
                    //获取合计
                    that.bigVisitCustomer.bigcalculation[1].targetDayCount = that.getCount(that.bigVisitCustomer.faceList, "target");
                    that.bigVisitCustomer.bigcalculation[1].finishDayCount = that.getCount(that.bigVisitCustomer.faceList, "complete");
                    that.bigVisitCustomer.bigcalculation[1].managerTargetNum = that.getCount(that.bigVisitCustomer.faceList, "managerTargetNum");
                    that.bigVisitCustomer.bigcalculation[1].regionManagerNum = that.getCount(that.bigVisitCustomer.faceList, "regionManagerNum");
                    that.bigVisitCustomer.bigcalculation[1].leaveNumber = that.getCount(that.bigVisitCustomer.faceList, "leaveNumber");
                    that.bigVisitCustomer.bigcalculation[1].daily = (that.bigVisitCustomer.bigcalculation[1].finishDayCount / that.bigVisitCustomer.bigcalculation[1].regionManagerNum).toFixed(2);
                    if (that.bigVisitCustomer.bigcalculation[1].targetDayCount == 0) {
                        that.bigVisitCustomer.bigcalculation[1].completionRate = "0.00%";
                    } else {
                        that.bigVisitCustomer.bigcalculation[1].completionRate = (that.visitCustomer.bigcalculation[1].finishDayCount / that.visitCustomer.bigcalculation[1].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#bigVisitDepart");
                $.wyui.postMethod(urlConfig.report.bigVisitCustomer.getForDepart, {
                    "userId": that.userId,
                    "dateTime": that.bigVisitCustomer.time,
                    "type": "0"
                }, function (data) {
                    var data = trimRN2(data);
                    that.bigVisitCustomer.telList = data;
                    //获取合计
                    that.bigVisitCustomer.bigcalculation[0].targetDayCount = that.getCount(that.bigVisitCustomer.telList, "target");
                    that.bigVisitCustomer.bigcalculation[0].finishDayCount = that.getCount(that.bigVisitCustomer.telList, "complete");
                    that.bigVisitCustomer.bigcalculation[0].managerTargetNum = that.getCount(that.bigVisitCustomer.telList, "managerTargetNum");
                    that.bigVisitCustomer.bigcalculation[0].regionManagerNum = that.getCount(that.bigVisitCustomer.telList, "regionManagerNum");
                    that.bigVisitCustomer.bigcalculation[0].leaveNumber = that.getCount(that.bigVisitCustomer.telList, "leaveNumber");
                    that.bigVisitCustomer.bigcalculation[0].daily = (that.bigVisitCustomer.bigcalculation[0].finishDayCount / that.bigVisitCustomer.bigcalculation[0].regionManagerNum).toFixed(2);
                    if (that.bigVisitCustomer.bigcalculation[0].targetDayCount == 0) {
                        that.bigVisitCustomer.bigcalculation[0].completionRate = "0.,l00%";
                    } else {
                        that.bigVisitCustomer.bigcalculation[0].completionRate = (that.bigVisitCustomer.bigcalculation[0].finishDayCount / that.bigVisitCustomer.bigcalculation[0].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#bigVisitDepart");

            },
            //获取拜访报表-公司级别
            get_visitCompany: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getForDepart, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time,
                    "type": "1"
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.faceList = data;
                    //获取合计
                    that.visitCustomer.bigcalculation[1].targetDayCount = that.getCount(that.visitCustomer.faceList, "target");
                    that.visitCustomer.bigcalculation[1].finishDayCount = that.getCount(that.visitCustomer.faceList, "complete");
                    that.visitCustomer.bigcalculation[1].managerTargetNum = that.getCount(that.visitCustomer.faceList, "managerTargetNum");
                    that.visitCustomer.bigcalculation[1].regionManagerNum = that.getCount(that.visitCustomer.faceList, "regionManagerNum");
                    that.visitCustomer.bigcalculation[1].leaveNumber = that.getCount(that.visitCustomer.faceList, "leaveNumber");
                    that.visitCustomer.bigcalculation[1].daily = (that.visitCustomer.bigcalculation[1].finishDayCount / that.visitCustomer.bigcalculation[1].regionManagerNum).toFixed(2);
                    if (that.visitCustomer.bigcalculation[1].targetDayCount == 0) {
                        that.visitCustomer.bigcalculation[1].completionRate = "0.00%";
                    } else {
                        that.visitCustomer.bigcalculation[1].completionRate = (that.visitCustomer.bigcalculation[1].finishDayCount / that.visitCustomer.bigcalculation[1].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#visitCompany");
                $.wyui.postMethod(urlConfig.report.visitCustomer.getForDepart, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time,
                    "type": "0"
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.telList = data;
                    //获取合计
                    that.visitCustomer.bigcalculation[0].targetDayCount = that.getCount(that.visitCustomer.telList, "target");
                    that.visitCustomer.bigcalculation[0].finishDayCount = that.getCount(that.visitCustomer.telList, "complete");
                    that.visitCustomer.bigcalculation[0].managerTargetNum = that.getCount(that.visitCustomer.telList, "managerTargetNum");
                    that.visitCustomer.bigcalculation[0].regionManagerNum = that.getCount(that.visitCustomer.telList, "regionManagerNum");
                    that.visitCustomer.bigcalculation[0].leaveNumber = that.getCount(that.visitCustomer.telList, "leaveNumber");
                    that.visitCustomer.bigcalculation[0].daily = (that.visitCustomer.bigcalculation[0].finishDayCount / that.visitCustomer.bigcalculation[0].regionManagerNum).toFixed(2);
                    if (that.visitCustomer.bigcalculation[0].targetDayCount == 0) {
                        that.visitCustomer.bigcalculation[0].completionRate = "0.,l00%";
                    } else {
                        that.visitCustomer.bigcalculation[0].completionRate = (that.visitCustomer.bigcalculation[0].finishDayCount / that.visitCustomer.bigcalculation[0].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#visitCompany");

            },
            //获取大客户拜访报表-公司级别
            get_bigVisitCompany: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.bigVisitCustomer.getForDepart, {
                    "userId": that.userId,
                    "dateTime": that.bigVisitCustomer.time,
                    "type": "1"
                }, function (data) {
                    that.bigVisitCustomer.faceList = data;
                    //获取合计
                    that.bigVisitCustomer.bigcalculation[1].targetDayCount = that.getCount(that.bigVisitCustomer.faceList, "target");
                    that.bigVisitCustomer.bigcalculation[1].finishDayCount = that.getCount(that.bigVisitCustomer.faceList, "complete");
                    that.bigVisitCustomer.bigcalculation[1].managerTargetNum = that.getCount(that.bigVisitCustomer.faceList, "managerTargetNum");
                    that.bigVisitCustomer.bigcalculation[1].regionManagerNum = that.getCount(that.bigVisitCustomer.faceList, "regionManagerNum");
                    that.bigVisitCustomer.bigcalculation[1].leaveNumber = that.getCount(that.bigVisitCustomer.faceList, "leaveNumber");
                    that.bigVisitCustomer.bigcalculation[1].daily = (that.bigVisitCustomer.bigcalculation[1].finishDayCount / that.bigVisitCustomer.bigcalculation[1].regionManagerNum).toFixed(2);
                    if (that.bigVisitCustomer.bigcalculation[1].targetDayCount == 0) {
                        that.bigVisitCustomer.bigcalculation[1].completionRate = "0.00%";
                    } else {
                        that.bigVisitCustomer.bigcalculation[1].completionRate = (that.bigVisitCustomer.bigcalculation[1].finishDayCount / that.bigVisitCustomer.bigcalculation[1].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#bigVisitCompany");
                $.wyui.postMethod(urlConfig.report.bigVisitCustomer.getForDepart, {
                    "userId": that.userId,
                    "dateTime": that.bigVisitCustomer.time,
                    "type": "0"
                }, function (data) {
                    that.bigVisitCustomer.telList = data;
                    //获取合计
                    that.bigVisitCustomer.bigcalculation[0].targetDayCount = that.getCount(that.bigVisitCustomer.telList, "target");
                    that.bigVisitCustomer.bigcalculation[0].finishDayCount = that.getCount(that.bigVisitCustomer.telList, "complete");
                    that.bigVisitCustomer.bigcalculation[0].managerTargetNum = that.getCount(that.bigVisitCustomer.telList, "managerTargetNum");
                    that.bigVisitCustomer.bigcalculation[0].regionManagerNum = that.getCount(that.bigVisitCustomer.telList, "regionManagerNum");
                    that.bigVisitCustomer.bigcalculation[0].leaveNumber = that.getCount(that.bigVisitCustomer.telList, "leaveNumber");
                    that.bigVisitCustomer.bigcalculation[0].daily = (that.bigVisitCustomer.bigcalculation[0].finishDayCount / that.bigVisitCustomer.bigcalculation[0].regionManagerNum).toFixed(2);
                    if (that.bigVisitCustomer.bigcalculation[0].targetDayCount == 0) {
                        that.bigVisitCustomer.bigcalculation[0].completionRate = "0.,l00%";
                    } else {
                        that.bigVisitCustomer.bigcalculation[0].completionRate = (that.bigVisitCustomer.bigcalculation[0].finishDayCount / that.bigVisitCustomer.bigcalculation[0].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#bigVisitCompany");

            },
            //获取拜访报表-集团级别
            get_visitGroup: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getForGroupByUserId, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time,
                    "type": "1"
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.JtfaceList = data;
                    //获取合计
                    that.visitCustomer.Jtbigcalculation[1].targetDayCount = that.getCount(that.visitCustomer.JtfaceList, "target");
                    that.visitCustomer.Jtbigcalculation[1].finishDayCount = that.getCount(that.visitCustomer.JtfaceList, "complete");
                    that.visitCustomer.Jtbigcalculation[1].managerTargetNum = that.getCount(that.visitCustomer.JtfaceList, "managerTargetNum");
                    that.visitCustomer.Jtbigcalculation[1].regionManagerNum = that.getCount(that.visitCustomer.JtfaceList, "regionManagerNum");
                    that.visitCustomer.Jtbigcalculation[1].leaveNumber = that.getCount(that.visitCustomer.JtfaceList, "leaveNumber");
                    that.visitCustomer.Jtbigcalculation[1].daily = (that.visitCustomer.Jtbigcalculation[1].finishDayCount / that.visitCustomer.Jtbigcalculation[1].regionManagerNum).toFixed(2);
                    if (that.visitCustomer.Jtbigcalculation[1].targetDayCount == 0) {
                        that.visitCustomer.Jtbigcalculation[1].completionRate = "0.00%";
                    } else {
                        that.visitCustomer.Jtbigcalculation[1].completionRate = (that.visitCustomer.Jtbigcalculation[1].finishDayCount / that.visitCustomer.Jtbigcalculation[1].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#visitGroup");
                $.wyui.postMethod(urlConfig.report.visitCustomer.getForGroupByUserId, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time,
                    "type": "0"
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.JttelList = data;
                    //获取合计
                    that.visitCustomer.Jtbigcalculation[0].targetDayCount = that.getCount(that.visitCustomer.JttelList, "target");
                    that.visitCustomer.Jtbigcalculation[0].finishDayCount = that.getCount(that.visitCustomer.JttelList, "complete");
                    that.visitCustomer.Jtbigcalculation[0].managerTargetNum = that.getCount(that.visitCustomer.JttelList, "managerTargetNum");
                    that.visitCustomer.Jtbigcalculation[0].regionManagerNum = that.getCount(that.visitCustomer.JttelList, "regionManagerNum");
                    that.visitCustomer.Jtbigcalculation[0].leaveNumber = that.getCount(that.visitCustomer.JttelList, "leaveNumber");
                    that.visitCustomer.Jtbigcalculation[0].daily = (that.visitCustomer.Jtbigcalculation[0].finishDayCount / that.visitCustomer.Jtbigcalculation[0].regionManagerNum).toFixed(2);
                    if (that.visitCustomer.Jtbigcalculation[0].targetDayCount == 0) {
                        that.visitCustomer.Jtbigcalculation[0].completionRate = "0.,l00%";
                    } else {
                        that.visitCustomer.Jtbigcalculation[0].completionRate = (that.visitCustomer.Jtbigcalculation[0].finishDayCount / that.visitCustomer.Jtbigcalculation[0].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#visitGroup");

            },
            //大区拜访-集团级别
            get_daQuVisitGroup: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getBigRegionManagerVisitForGroup, {
                    "userId": that.userId,
                    "dateTime": that.daQuVisitGroup.time,
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.daQuVisitGroup.list = data;
                    //获取合计
                    that.daQuVisitGroup.bigRegionManagerNum = that.getCount(that.daQuVisitGroup.list, "bigRegionManagerNum");
                    that.daQuVisitGroup.managerCount = that.getCount(that.daQuVisitGroup.list, "managerCount");
                    that.daQuVisitGroup.customerCount = that.getCount(that.daQuVisitGroup.list, "customerCount");

                }, false, "#daQuVisitGroup")
            },
            //大区拜访-公司级别
            get_daQuVisitCompany: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getBigRegionManagerVisitForDepart, {
                    "userId": that.userId,
                    "dateTime": that.daQuVisitCompany.time,
                    "visitType": "1"
                }, function (data) {
                    console.log(data)
                    var data = trimRN2(data);
                    that.daQuVisitCompany.faceList = data;
                    that.getAll(that.daQuVisitCompany.faceList, "1");
                }, false, "#daQuVisitCompany")
                $.wyui.postMethod(urlConfig.report.visitCustomer.getBigRegionManagerVisitForDepart, {
                    "userId": that.userId,
                    "dateTime": that.daQuVisitCompany.time,
                    "visitType": "0"
                }, function (data) {
                    console.log(data)
                    var data = trimRN2(data);
                    that.daQuVisitCompany.telList = data;
                    that.getAll(that.daQuVisitCompany.faceList, "0");
                }, false, "#daQuVisitCompany")
            },
            getAll: function (arr, type) {
                if (type == "1") {
                    this.daQuVisitCompany.allDate[1].planCount = this.getCount(arr, "planCount");
                    console.log(this.daQuVisitCompany.allDate[1].planCount)
                    this.daQuVisitCompany.allDate[1].finishCount = this.getCount(arr, "finishCount");
                    this.daQuVisitCompany.allDate[1].signInNum = this.getCount(arr, "signInNum");
                    this.daQuVisitCompany.allDate[1].errorNum = this.getCount(arr, "errorNum");

                } else {
                    this.daQuVisitCompany.allDate[0].finishCount = this.getCount(arr, "finishCount");
                    this.daQuVisitCompany.allDate[0].signInNum = this.getCount(arr, "signInNum");
                }
            },
            //获取大客户拜访报表-集团级别
            get_bigVisitGroup: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.bigVisitCustomer.getForGroupByUserId, {
                    "userId": that.userId,
                    "dateTime": that.bigVisitCustomer.time,
                    "type": "1"
                }, function (data) {
                    var data = trimRN2(data);
                    that.bigVisitCustomer.faceList = data;
                    //获取合计
                    that.bigVisitCustomer.bigcalculation[1].targetDayCount = that.getCount(that.bigVisitCustomer.faceList, "target");
                    that.bigVisitCustomer.bigcalculation[1].finishDayCount = that.getCount(that.bigVisitCustomer.faceList, "complete");
                    that.bigVisitCustomer.bigcalculation[1].managerTargetNum = that.getCount(that.bigVisitCustomer.faceList, "managerTargetNum");
                    that.bigVisitCustomer.bigcalculation[1].regionManagerNum = that.getCount(that.bigVisitCustomer.faceList, "regionManagerNum");
                    that.bigVisitCustomer.bigcalculation[1].leaveNumber = that.getCount(that.bigVisitCustomer.faceList, "leaveNumber");
                    that.bigVisitCustomer.bigcalculation[1].daily = (that.visitCustomer.bigcalculation[1].finishDayCount / that.bigVisitCustomer.bigcalculation[1].regionManagerNum).toFixed(2);
                    if (that.visitCustomer.bigcalculation[1].targetDayCount == 0) {
                        that.bigVisitCustomer.bigcalculation[1].completionRate = "0.00%";
                    } else {
                        that.bigVisitCustomer.bigcalculation[1].completionRate = (that.bigVisitCustomer.bigcalculation[1].finishDayCount / that.bigVisitCustomer.bigcalculation[1].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#bigVisitGroup");
                $.wyui.postMethod(urlConfig.report.bigVisitCustomer.getForGroupByUserId, {
                    "userId": that.userId,
                    "dateTime": that.bigVisitCustomer.time,
                    "type": "0"
                }, function (data) {
                    var data = trimRN2(data);
                    that.bigVisitCustomer.telList = data;
                    //获取合计
                    that.bigVisitCustomer.bigcalculation[0].targetDayCount = that.getCount(that.bigVisitCustomer.telList, "target");
                    that.bigVisitCustomer.bigcalculation[0].finishDayCount = that.getCount(that.bigVisitCustomer.telList, "complete");
                    that.bigVisitCustomer.bigcalculation[0].managerTargetNum = that.getCount(that.bigVisitCustomer.telList, "managerTargetNum");
                    that.bigVisitCustomer.bigcalculation[0].regionManagerNum = that.getCount(that.bigVisitCustomer.telList, "regionManagerNum");
                    that.bigVisitCustomer.bigcalculation[0].leaveNumber = that.getCount(that.bigVisitCustomer.telList, "leaveNumber");
                    that.bigVisitCustomer.bigcalculation[0].daily = (that.bigVisitCustomer.bigcalculation[0].finishDayCount / that.bigVisitCustomer.bigcalculation[0].regionManagerNum).toFixed(2);
                    if (that.bigVisitCustomer.bigcalculation[0].targetDayCount == 0) {
                        that.bigVisitCustomer.bigcalculation[0].completionRate = "0.,l00%";
                    } else {
                        that.bigVisitCustomer.bigcalculation[0].completionRate = (that.bigVisitCustomer.bigcalculation[0].finishDayCount / that.bigVisitCustomer.bigcalculation[0].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#bigVisitGroup");

            },
            //获取陪同拜访客户报表-集团级别
            get_visitClientGroup: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getCompanyByUserId, {
                    "userId": that.userId,
                    "dateTime": that.visitClientCustomer.time,
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitClientCustomer.list = data;
                    that.visitClientCustomer.managerCount = that.getCount(that.visitClientCustomer.list, "managerCount");
                    that.visitClientCustomer.visitCount = that.getCount(that.visitClientCustomer.list, "visitCount");
                    that.visitClientCustomer.managerTargetNum = that.getCount(that.visitClientCustomer.list, "managerTargetNum");
                    that.visitClientCustomer.regionManagerNum = that.getCount(that.visitClientCustomer.list, "regionManagerNum");
                }, false, "#visitClientGroup");
            },
            //获取陪同拜访客户报表-公司级别
            get_visitClientCompany: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getManagerByUserId, {
                    "userId": that.userId,
                    "dateTime": that.visitClientCustomer.time,
                    "entourageName": that.visitClientCustomer.entourageName
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitClientCustomer.list = data;
                    that.visitClientCustomer.visitCount = that.getCount(that.visitClientCustomer.list, "visitCount");
                }, false, "#visitClientCompany");
            },
            //获取陪同拜访客户报表-大区经理级别
            get_visitClientDepart: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getManagerByUserId, {
                    "userId": that.userId,
                    "dateTime": that.visitClientCustomer.time,
                    "entourageName": that.visitClientCustomer.entourageName
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitClientCustomer.list = data;
                    that.visitClientCustomer.visitCount = that.getCount(that.visitClientCustomer.list, "visitCount");
                }, false, "#visitClientDepart");
            },

            //获取客户报表-区域经理
            get_customersPersonal: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.customerReport.getForPersonalCustomerList, {
                    "userId": that.userId,
                    "dateTime": that.customer.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.customer.list = data.records;
                }, false, "#customersPersonal");
            },
            //获取部门客户报表
            get_customersDepart: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.customerReport.getForDepartCustomerList, {
                    "userId": that.userId,
                    "dateTime": that.customer.time
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.customer.list = that.tablesMergeCell(data.records);
                    that.customer.numCount = that.getCount(that.customer.list, "num");
                }, false, "#customersDepart");
            },
            //获取公司客户报表
            get_customersCompany: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.customerReport.getForCompanyCustomerList, {
                    "userId": that.userId,
                    "dateTime": that.customer.time
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.customer.list = data.records;
                    that.customer.numCount = that.getCount(that.customer.list, "num");
                }, false, "#customersCompany");
            },
            //获取客户报表-集团
            get_customersGroup: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.customerReport.getForGroupCustomerList, {
                    "userId": that.userId,
                    "dateTime": that.customer.time
                }, function (data) {
                    console.log(data)
                    var data = trimRN2(data);
                    that.customer.list = data.records;
                    that.customer.numCount = that.getCount(that.customer.list, "num");
                    that.customer.allNumCount = that.getCount(that.customer.list, "allNum");
                }, false, "#customersGroup");
            },
            /*打开客户详情页面*/
            openCustomerInfo: function (customerId) {
                var that = this;
                top.closeTabByPageId("openCustomerInfo");
                top.addTabs({
                    id: 'openCustomerInfo',
                    title: '客户详细信息',
                    close: true,
                    url: 'customer/customerDetails.html?customerId=' + customerId
                });
            },
            exportGetForDepart: function () {
                var that = this;
                $('#ifExprot').attr('src', server.ip
                    + "/attendance/downExcelSignInForDepart.json"
                    + '?dateTime=' + that.sign.time
                    + '&userId=' + that.userId
                    + '&frontFlag=' + that.frontFlag
                )
                return false;
            },
            exportGetForCompany: function () {
                var that = this;
                $('#ifExprot').attr('src', server.ip
                    + "/attendance/downExcelSignInForCompany.json"
                    + '?dateTime=' + that.sign.time
                    + '&userId=' + that.userId
                    + '&frontFlag=' + that.frontFlag
                )
                return false;
            },
            //获取费用报表-个人模块
            get_costPersonal: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.reportCost.getForPersonalByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.cost.time
                }, function (data) {
                    that.cost.list = data;
                    that.cost.all.money = that.getCount(that.cost.list, "money");
                    console.log(data);
                }, false, "#costPersonal");
            },
            //获取费用报表-部门模块
            get_costDepart: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.reportCost.getForDepartByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.cost.time
                }, function (data) {
                    that.cost.list = that.tablesMergeCell(data);
                    that.cost.all.money = that.getCount(that.cost.list, "money");
                    that.cost.all.bxMoney = that.getCount(that.cost.list, "bxMoney");
                    that.cost.all.unBxMoney = that.getCount(that.cost.list, "unBxMoney");
                    console.log(data);
                }, false, "#costDepart");
            },
            //获取费用报表-公司模块
            get_costCompany: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.reportCost.getForCompanyByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.cost.time
                }, function (data) {
                    that.cost.list = that.tablesMergeCell(data);
                    that.cost.all.money = that.getCount(that.cost.list, "money");
                    that.cost.all.bxMoney = that.getCount(that.cost.list, "bxMoney");
                    that.cost.all.unBxMoney = that.getCount(that.cost.list, "unBxMoney");
                    console.log(data);
                }, false, "#costCompany");
            },
            //获取费用报表-集团模块
            get_costGroup: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.reportCost.getForGroupByUserIdAndDateTime, {
                    "userId": that.userId,
                    "dateTime": that.cost.time
                }, function (data) {
                    that.cost.list = that.tablesMergeCell(data);
                    that.cost.all.money = that.getCount(that.cost.list, "money");
                    that.cost.all.bxMoney = that.getCount(that.cost.list, "bxMoney");
                    that.cost.all.unBxMoney = that.getCount(that.cost.list, "unBxMoney");
                    console.log(data);
                }, false, "#costGroup");
            },
            //获取拜访客户，区域经理首末拜访
            get_stratAndEndFaceVisit: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.stratAndEndFaceVisit, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.faceList = data.faceVisitToday;
                    /*//获取合计
                    that.visitCustomer.bigcalculation[1].targetDayCount = that.getCount(that.visitCustomer.faceList, "target");
                    that.visitCustomer.bigcalculation[1].finishDayCount = that.getCount(that.visitCustomer.faceList, "complete");
                    that.visitCustomer.bigcalculation[1].managerTargetNum = that.getCount(that.visitCustomer.faceList, "managerTargetNum");
                    that.visitCustomer.bigcalculation[1].regionManagerNum = that.getCount(that.visitCustomer.faceList, "regionManagerNum");
                    that.visitCustomer.bigcalculation[1].leaveNumber = that.getCount(that.visitCustomer.faceList, "leaveNumber");
                    that.visitCustomer.bigcalculation[1].daily = (that.visitCustomer.bigcalculation[1].finishDayCount / that.visitCustomer.bigcalculation[1].regionManagerNum).toFixed(2);
                    if (that.visitCustomer.bigcalculation[1].targetDayCount == 0) {
                        that.visitCustomer.bigcalculation[1].completionRate = "0.00%";
                    } else {
                        that.visitCustomer.bigcalculation[1].completionRate = (that.visitCustomer.bigcalculation[1].finishDayCount / that.visitCustomer.bigcalculation[1].targetDayCount * 100).toFixed(2) + "%";
                    }*/
                }, false, "#stratAndEndFaceVisit");
                /*$.wyui.postMethod(urlConfig.report.visitCustomer.getForGroupByUserId, {
                    "userId": that.userId,
                    "dateTime": that.visitCustomer.time,
                    "type": "0"
                }, function (data) {
                    var data = trimRN2(data);
                    that.visitCustomer.telList = data;
                    //获取合计
                    that.visitCustomer.bigcalculation[0].targetDayCount = that.getCount(that.visitCustomer.telList, "target");
                    that.visitCustomer.bigcalculation[0].finishDayCount = that.getCount(that.visitCustomer.telList, "complete");
                    that.visitCustomer.bigcalculation[0].managerTargetNum = that.getCount(that.visitCustomer.telList, "managerTargetNum");
                    that.visitCustomer.bigcalculation[0].regionManagerNum = that.getCount(that.visitCustomer.telList, "regionManagerNum");
                    that.visitCustomer.bigcalculation[0].leaveNumber = that.getCount(that.visitCustomer.telList, "leaveNumber");
                    that.visitCustomer.bigcalculation[0].daily = (that.visitCustomer.bigcalculation[0].finishDayCount / that.visitCustomer.bigcalculation[0].regionManagerNum).toFixed(2);
                    if (that.visitCustomer.bigcalculation[0].targetDayCount == 0) {
                        that.visitCustomer.bigcalculation[0].completionRate = "0.,l00%";
                    } else {
                        that.visitCustomer.bigcalculation[0].completionRate = (that.visitCustomer.bigcalculation[0].finishDayCount / that.visitCustomer.bigcalculation[0].targetDayCount * 100).toFixed(2) + "%";
                    }
                }, false, "#stratAndEndFaceVisit");*/

            },

            //获取意向客户报表
            get_intentionalCustomersPersonal: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.intentCustomer.getForPersonalIntentCustomerList, {
                    "userId": that.userId
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.intentionalCustomer.list = data.records;
                }, false, "#intentionalCustomersPersonal");

            },
            //获取大区意向客户报表
            get_intentionalCustomersDepart: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.intentCustomer.getForDepartIntentCustomerList, {
                    "userId": that.userId
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.intentionalCustomer.list = that.tablesMergeCell(data);
                    that.intentionalCustomer.weekNumCount = that.getCount(that.intentionalCustomer.list, "todayMonth");//本月内
                    that.intentionalCustomer.monthNumCount = that.getCount(that.intentionalCustomer.list, "nextMonth");//下月内
                    that.intentionalCustomer.threeNumCount = that.getCount(that.intentionalCustomer.list, "threeMonth");//三月内
                    that.intentionalCustomer.banNianNumCount = that.getCount(that.intentionalCustomer.list, "halfYear");//半年内
                    that.intentionalCustomer.allNumCount = that.getCount(that.intentionalCustomer.list, "allNum");//总数
                }, false, "#get_intentionalCustomersCompany");
            },
            //获取公司意向客户报表
            get_intentionalCustomersCompany: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.intentCustomer.getForCompanyIntentCustomerList, {
                    "userId": that.userId
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.intentionalCustomer.list = that.tablesMergeCell(data);
                    that.intentionalCustomer.weekNumCount = that.getCount(that.intentionalCustomer.list, "todayMonth");//1天内
                    that.intentionalCustomer.monthNumCount = that.getCount(that.intentionalCustomer.list, "nextMonth");//1月内
                    that.intentionalCustomer.threeNumCount = that.getCount(that.intentionalCustomer.list, "threeMonth");//三月内
                    that.intentionalCustomer.banNianNumCount = that.getCount(that.intentionalCustomer.list, "halfYear");//半年内
                    that.intentionalCustomer.allNumCount = that.getCount(that.intentionalCustomer.list, "allNum");//总数
                }, false, "#get_intentionalCustomersCompany");
            },
            //获取集团意向客户报表
            get_intentionalCustomersGroup: function () {
                var that = this;
                //$.wyui.postMethod(urlConfig.intentionCustomerManagement.getIntentCustomerListByRegionGroup, {
                $.wyui.postMethod(urlConfig.report.intentCustomer.getForGroupIntentCustomerList, {
                    "userId": that.userId
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.intentionalCustomer.list = that.tablesMergeCell(data);
                    that.intentionalCustomer.weekNumCount = that.getCount(that.intentionalCustomer.list, "todayMonth");//本月内
                    that.intentionalCustomer.monthNumCount = that.getCount(that.intentionalCustomer.list, "nextMonth");//下月内
                    that.intentionalCustomer.threeNumCount = that.getCount(that.intentionalCustomer.list, "threeMonth");//三月内
                    that.intentionalCustomer.banNianNumCount = that.getCount(that.intentionalCustomer.list, "halfYear");//半年内
                    that.intentionalCustomer.allNumCount = that.getCount(that.intentionalCustomer.list, "allNum");//总数
                }, false, "#get_intentionalCustomersGroup");
            },

            //获取人员情况报表
            get_personnelDepart: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.personnelReport.getForCompanyByUserId, {
                    "userId": that.userId
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.personnel.list = that.tablesMergeCell(data);
                }, false, "#personnelDepart");
            },
            goIntent: function (customerId) {
                var pt = 'look';
                var isRegion = '0'
                if (getCurrentUser().roleName == '区域经理') {
                    pt = 'edit';
                    isRegion = '1';
                }
                if (customerId && customerId != '') {
                    var H = $(window).height() - 50;
                    top.$.dialog({
                        content: 'url:/page/intentionManagement/quYuIntentionalDetailApp.html?customerId=' + customerId + '&isAdd=0&pageType=' + pt + '&userId=' + getCurrentUser().id + '&companyId=' + getCurrentUser().companyId + '&isRegion=' + isRegion + '&type=pcbb&index=0',
                        title: '意向客户详情',
                        width: 500,
                        height: H,
                        max: true,
                        min: true,
                        lock: true,
                    });
                }
            },
            //获取公司人员情况报表
            get_personnelCompany: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.personnelReport.getForCompanyByUserId, {
                    "userId": that.userId
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.personnel.list = that.tablesMergeCell(data);
                }, false, "#personnelCompany");
            },
            //获取集团人员情况报表
            get_personnelGroup: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.personnelReport.getForGroupByUserId, {
                    "userId": that.userId
                }, function (data) {
                    console.log(data);
                    var data = trimRN2(data);
                    that.personnel.list = that.tablesMergeCell(data);
                    that.personnel.all.bigCustomerDirectorNowNum = that.getCount(that.personnel.list, "bigCustomerDirectorNowNum");
                    that.personnel.all.bigCustomerDirectorTargetNum = that.getCount(that.personnel.list, "bigCustomerDirectorTargetNum");
                    that.personnel.all.bigCustomerDirectorVacancyNum = that.getCount(that.personnel.list, "bigCustomerDirectorVacancyNum");
                    that.personnel.all.bigCustomerManageNowNum = that.getCount(that.personnel.list, "bigCustomerManageNowNum");
                    that.personnel.all.bigCustomerManageTargetNum = that.getCount(that.personnel.list, "bigCustomerManageTargetNum");
                    that.personnel.all.bigCustomerManageVacancyNum = that.getCount(that.personnel.list, "bigCustomerManageVacancyNum");
                    that.personnel.all.bigRegionManagerNowNum = that.getCount(that.personnel.list, "bigRegionManagerNowNum");
                    that.personnel.all.bigRegionManagerTargetNum = that.getCount(that.personnel.list, "bigRegionManagerTargetNum");
                    that.personnel.all.bigRegionManagerVacancyNum = that.getCount(that.personnel.list, "bigRegionManagerVacancyNum");
                    that.personnel.all.regionManagerNowNum = that.getCount(that.personnel.list, "regionManagerNowNum");
                    that.personnel.all.regionManagerTargetNum = that.getCount(that.personnel.list, "regionManagerTargetNum");
                    that.personnel.all.regionManagerVacancyNum = that.getCount(that.personnel.list, "regionManagerVacancyNum");

                }, false, "#personnelGroup");
            },
            openSignInList: function (type1, typeId, type2, companyName) {
//                getForSignInByTypeAndDateTime
                var that = this;
                var title;
                if (type2 == 1) {
                    title = "出勤列表";
                    url = "/reportForm/signIn/signInList.html?type1=" + type1 + "&type2=" + type2 + "&typeId=" + typeId + "&dateTime=" + that.sign.time;
                    top.closeTabByPageId("signInList");
                    top.addTabs({id: "signInList", title: title, close: true, url: url});
                } else if (type2 == 2) {
                    title = "请假列表";
                    url = "/reportForm/signIn/leaveList.html?type1=" + type1 + "&type2=" + type2 + "&typeId=" + typeId + "&dateTime=" + that.sign.time + '&t=' + new Date()
                    top.closeTabByPageId("leaveList");
                    top.addTabs({id: "leaveList", title: title, close: true, url: url});
                } else if (type2 == 3) {
                    title = "缺勤列表";
                    url = "/reportForm/signIn/unSignInList.html?type1=" + type1 + "&type2=" + type2 + "&typeId=" + typeId + "&dateTime=" + that.sign.time + '&t=' + new Date()
                    top.closeTabByPageId("unSignInList");
                    top.addTabs({id: "unSignInList", title: title, close: true, url: url});
                }
            },
            //查看考勤公司级别页面
            openSignInCompany: function (item) {
                var that = this;
                url = "/reportForm/signIn/signInCompany.html?companyId=" + item.companyId + "&companyName=" + item.companyName + "&dateTime=" + that.sign.time;
                top.closeTabByPageId("openSignInCompany");
                top.addTabs({id: "openSignInCompany", title: item.companyName, close: true, url: url});
            },
            //查看考勤 部门详情页面
            openSignInDepart: function (item) {
                var that = this;
                top.closeTabByPageId("openSignInDepart");
                top.addTabs({
                    id: "openSignInDepart",
                    title: item.departName + "考勤详情",
                    close: true,
                    url: '/reportForm/signIn/signInDepart.html?departId=' + item.departId + "&dateTime=" + that.sign.time
                });
            },
            //查看考勤 个人详情页面
            openSignInPersonal: function (item) {
                var that = this;
                top.closeTabByPageId("openSignInPersonal");
                top.addTabs({
                    id: "openSignInPersonal",
                    title: item.userName + "考勤详情",
                    close: true,
                    url: '/reportForm/signIn/signInPersonal.html?userId=' + item.userId + "&dateTime=" + that.sign.time
                });
            },

            //查看微信公司级别页面
            openWechatCompany: function (item) {
                var that = this;
                url = "/reportForm/wechat/wechatCompany.html?companyId=" + item.companyId + "&companyName=" + item.companyName + "&dateTime=" + that.wechat.time;
                top.closeTabByPageId("openWechatCompany");
                top.addTabs({id: "openWechatCompany", title: item.companyName, close: true, url: url});
            },
//            //查看微信 部门详情页面
//            openWechatDepart:function(item){
//                var that=this;
//                top.closeTabByPageId("openWechatDepart");
//                top.addTabs({
//                    id: "openWechatDepart",
//                    title: item.departBigName+"详情",
//                    close: true,
//                    url: '/reportForm/wechat/wechatDepart.html?departId='+item.departBigId+"&dateTime="+that.wechat.time
//                });
//            },
            //查看微信 个人详情页面
            openWechatPersonal: function (item) {
                var that = this;
                top.closeTabByPageId("openWechatPersonal");
                top.addTabs({
                    id: "openWechatPersonal",
                    title: item.userName + "详情",
                    close: true,
                    url: '/reportForm/wechat/wechatPersonal.html?userId=' + item.userId + "&dateTime=" + that.wechat.time
                });
            },

            //查看拜访详情
            lookInterview: function (item, type) {
                var that = this;
                url = "reportForm/interview/interviewCustomerList.html";
                top.closeTabByPageId("bfkh-company");
                top.addTabs({
                    id: "bfkh-company",
                    title: '拜访客户列表',
                    close: true,
                    url: url + '?userId=' + item.userId + "&dateTime=" + that.visitCustomer.time + "&name=" + item.userName + "&type=" + type
                });
//                $.dialog({
//                    content: 'url:' + url + '?userId=' + item.userId + "&dateTime=" + that.visitCustomer.time + "&name=" + item.userName + "&type=" + type,
//                    title: '拜访客户列表',
//                    width: 500,
//                    height: 500,
//                    max: false,
//                    min: false,
//                    lock: true
//                });
            },
            //查拜访大区下级页面
            lookBigInterview: function (item, type) {
                var that = this;
                url = "reportForm/interview/interviewOne.html";
                top.closeTabByPageId("bfbb-one");
                top.addTabs({
                    id: "bfbb-one",
                    title: item.regionName,
                    close: true,
                    url: url + '?companyId=' + item.companyId + "&dateTime=" + that.visitCustomer.time
                });
            },
            //查拜访个人页面
            lookInterviewPersonal: function (item, type) {
                var that = this;
                url = "reportForm/interview/interviewPersonal.html";
                top.closeTabByPageId("lookInterviewPersonal");
                top.addTabs({
                    id: "lookInterviewPersonal",
                    title: item.departName,
                    close: true,
                    url: url + '?departId=' + item.departId + "&dateTime=" + that.visitCustomer.time
                });
            },
            //查拜访部门下级页面
            lookInterviewDepart: function (item, type) {
                var that = this;
                url = "reportForm/interview/interviewDepart.html";
                top.closeTabByPageId("lookInterviewDepart");
                top.addTabs({
                    id: "lookInterviewDepart",
                    title: item.departName,
                    close: true,
                    url: url + '?companyId=' + item.companyId + "&dateTime=" + that.visitCustomer.time
                });
            },
            //查看大客户拜访详情
            lookBigInterview: function (item, type) {
                var that = this;
                url = "reportForm/interview/interviewCustomerList.html";
                top.closeTabByPageId("bfkh-company");
                top.addTabs({
                    id: "bfkh-company",
                    title: '拜访客户列表',
                    close: true,
                    url: url + '?userId=' + item.userId + "&dateTime=" + that.bigVisitCustomer.time + "&name=" + item.userName + "&type=" + type,

                    /*
                                    url + '?userId=' + item.userId + "&dateTime=" + that.visitCustomer.time + "&name=" + item.userName + "&type=" + type
                    */
                    /*$.dialog({
                        content: 'url:' + url + '?userId=' + item.userId + "&dateTime=" + that.bigVisitCustomer.time + "&name=" + item.userName + "&type=" + type,
                        title: '拜访客户列表',
                        width: 500,
                        height: 500,
                        max: false,
                        min: false,
                        lock: true*/
                });
            },
            //查大客户拜访部门下级页面
            lookBigInterviewDepart: function (item, type) {
                var that = this;
                url = "reportForm/interview/interviewDepart.html";
                top.closeTabByPageId("lookBigInterviewDepart");
                top.addTabs({
                    id: "lookBigInterviewDepart",
                    title: item.departName,
                    close: true,
                    url: url + '?companyId=' + item.companyId + "&dateTime=" + that.bigVisitCustomer.time
                });
            },
            //大客户公司下面部门
            lookBigInterviewDepart: function (item, type) {
                var that = this;
                url = "reportForm/interview/bigInterviewDepart.html";
                top.closeTabByPageId("lookBigInterviewDepart");
                top.addTabs({
                    id: "lookBigInterviewDepart",
                    title: item.departName,
                    close: true,
                    url: url + '?companyId=' + item.companyId + "&dateTime=" + that.bigVisitCustomer.time
                });
            },
            //查拜访公司下级页面
            lookInterviewCompany: function (item, type) {
                var that = this;
                url = "reportForm/interview/interviewCompany.html";
                top.closeTabByPageId("bfbb-company");
                top.addTabs({
                    id: "bfbb-company",
                    title: item.companyName,
                    close: true,
                    url: url + '?companyId=' + item.companyId + "&dateTime=" + that.visitCustomer.time
                });
            },
            //查大客户拜访公司下级页面
            lookBigInterviewCompany: function (item, type) {
                var that = this;
                url = "reportForm/interview/bigInterviewCompany.html";
                top.closeTabByPageId("bfbb-company");
                top.addTabs({
                    id: "bfbb-company",
                    title: item.companyName,
                    close: true,
                    url: url + '?companyId=' + item.companyId + "&dateTime=" + that.bigVisitCustomer.time
                });
            },
            lookPersonnelDepartList: function (item) {
                top.addTabs({
                    id: "look" + item.userId,
                    title: item.userName + "详情",
                    close: true,
                    url: '/personnel/entry.html?id=' + item.userId + '&pageType=look'
                });
            },
            //查看费用报销 个人详情页面
            openCostPersonal: function (item, dateTime, start) {
                var startValue = start;
                if (!startValue && startValue != 0) {
                    startValue = ""
                }
                top.closeTabByPageId("openCostPersonal");
                top.addTabs({
                    id: "openCostPersonal",
                    title: item.userName + "费用报销详情",
                    close: true,
                    url: '/reportForm/cost/costPersonal.html?userId=' + item.userId + "&dateTime=" + dateTime + "&start=" + startValue
                });
            },
            //查看费用报销 部门详情页面
            openCostDepart: function (item, dateTime) {
                top.closeTabByPageId("openCostDepart");
                top.addTabs({
                    id: "openCostDepart",
                    title: item.departName + "费用报销详情",
                    close: true,
                    url: '/reportForm/cost/costDepart.html?departId=' + item.departId + "&dateTime=" + dateTime
                });
            },
            //查看费用报销 公司详情页面
            openCostCompany: function (item, dateTime) {
                top.closeTabByPageId("openCostCompany");
                top.addTabs({
                    id: "openCostCompany",
                    title: item.companyName + "费用报销详情",
                    close: true,
                    url: '/reportForm/cost/costCompany.html?companyId=' + item.companyId + "&dateTime=" + dateTime
                });
            },
//            //查看客户报表 公司详情页面
//            openCustomersDepart:function(item,dateTime){
//                top.closeTabByPageId("openCustomersDepart");
//                top.addTabs({
//                    id: "openCustomersDepart",
//                    title: item.companyName+"客户报表详情",
//                    close: true,
//                    url: '/reportForm/customer/customerDepart.html?companyId='+item.companyId+"&dateTime="+dateTime
//                });
//            },
            //查看人员情况 部门详情页面
            openPersonalDepart: function (item, dateTime) {
                top.closeTabByPageId("openPersonalDepart");
                top.addTabs({
                    id: "openPersonalDepart",
                    title: item.DepartName + "人员情况详情",
                    close: true,
                    url: '/reportForm/personnel/personalDepart.html?departId=' + item.departId + "&dateTime=" + dateTime
                });
            },
            //查看人员情况 集团详情页面
            openPersonalGroup: function (item, dateTime) {
                top.closeTabByPageId("openPersonalGroup");
                top.addTabs({
                    id: "openPersonalGroup",
                    title: item.companyName + "人员情况详情",
                    close: true,
                    url: '/reportForm/personnel/personalCompany.html?companyId=' + item.companyId
                });
            },
            //通过拥有的模块调用各模块对应的接口
            getFunctionByTemplate: function () {
                var that = this;
                for (var i = 0; i < that.modules.length; i++) {
                    /* if (that.modules[i] == "signInPersonal") {
                     //大区经理-考勤和区域经理考勤初始时间不一样。所以特定调整一下；
                     that.sign.time = that.thisMonth;
                     }*/
                    console.log(that.modules[i])
                    if (that["get_" + that.modules[i]]) {
                        if (that.modules[i] == 'costDepart') {
                            that.get_costPersonal()
                        } else {
                            that["get_" + that.modules[i]]();

                        }
                    }

                }
            },
            isCheck: function (item) {
                var that = this;
                if (that.isHasRightOp(item.regionId)) {
                    return true
                } else if (item.regionId == '') {
                    return true;
                } else {
                    return false
                }
            },
            isHasRightOp: function (regionId) {
                //console.log($.inArray(regionId, this.reginIds) > -1)
                return $.inArray(regionId, this.reginIds) > -1;
            },
            getRegionByUserId: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getRegionByUserId, {userId: getCurrentUser().id}, function (ids) {
                    for (var i = 0; i < ids.length; i++) {
                        that.reginIds.push(ids[i].regionId);
                    }
//                    console.log(that.reginIds)
                }, true);
            },

            gotoCostDetail: function (id) {
                top.$.dialog({
                    content: 'url:/page/wreport/temporaryExpenses.html?id=' + id,
                    title: "费用详情",
                    width: 904,
                    height: 365,
                    max: true,
                    min: true,
                    lock: true
                });
            },
            getRegionNameByUserId: function () {
                var that = this;
                $.wyui.postMethod(urlConfig.report.visitCustomer.getForDepartByUserIdForClick, {userId: getCurrentUser().id}, function (ids) {
                    for (var i = 0; i < ids.length; i++) {
                        that.regionNames.push(ids[i].regionName);
                    }
                }, true);
            },
            openPlan: function (item) {
                console.log(item)
                url = "reportForm/interview/daQuPlan.html";
                top.closeTabByPageId("dqbf-company");
                top.addTabs({
                    id: "dqbf-company",
                    title: "面访计划",
                    close: true,
                    url: url + '?userId=' + item.userId + "&dateTime=" + this.daQuVisitCompany.time
                });
            },
            openDaQuCompany: function (item) {
                var that = this;
                url = "reportForm/interview/daQuInterviewCompany.html";
                top.closeTabByPageId("dqbf-company");
                top.addTabs({
                    id: "dqbf-company",
                    title: item.companyName,
                    close: true,
                    url: url + '?companyId=' + item.companyId + "&dateTime=" + that.daQuVisitGroup.time
                });
            },
            //打开大区拜访个人页面
            openInterview: function (item, type) {
                var that = this;
                top.closeTabByPageId("khList2");
                top.addTabs({
                    id: 'khList2',
                    title: type == 1 ? item.name + '面访' : item.name + '电访',
                    close: true,
                    url: 'reportForm/interview/daQuinterviewCustomerList.html?userId=' + item.userId + "&dateTime=" + that.daQuVisitCompany.time + "&name=" + item.name + "&type=" + type,
                });
            },
            isActive: function (item) {
                var that = this;
                if (that.daQuVisitCompany.time == item) {
                    return true;
                }
            },
            isCheckRegionName: function (item) {
                var that = this;
                if (that.isHasregionNameOp(item.departName)) {
                    return true
                } else {
                    return false
                }
            },
            isHasregionNameOp: function (departName) {
                return $.inArray(departName, this.regionNames) > -1;
            },
            openAbnormal: function (item) {
                var that = this;
                top.closeTabByPageId("interviewYc");
                top.addTabs({
                    id: 'interviewYc',
                    title: '本月面访详情',
                    close: true,
                    url: 'reportForm/interview/interviewAbnormal.html?userId=' + item.userId + "&dateTime=" + that.daQuVisitCompany.time + '&managerName=' + item.managerName,
                });
            },
        },
        mounted: function () {
            console.log(getCurrentUser().roleName);
            var that = this;
            //1.获取前5个月的tab数据
            this.getTab();
            //2.获取该人员对应的模块
            this.getModules();
            //3.通过拥有的模块调用各模块对应的接口
            this.getFunctionByTemplate();
            this.getRegionByUserId();
            this.getRegionNameByUserId();
        },
        update: function () {

        }
    });
</script>

</body>
</html>